The Biscuit Parser Library
- ひとまず完成・・・ダウンロード
- YARDのBoostへの移植です
- Expression Templateを手作りすることによって小さく速いコードを生成します
- VC6でもなんとか動きます
[]using[] []namespace[] []biscuit[][];[][]struct[] []c_comment[][] :[]
[]seq[][]<[]
[]chseq[][]<[][]'/'[][],[][]'*'[][]>,[]
[]star_until[][]< [][]any[][], [][]chseq[][]<[][]'*'[][],[][]'/'[][]> >[]
[] >[]
[]{ };[][]BOOST_FOREACH[][] ([]
[]boost[][]::[][]sub_range[][]<[][]char[] []const[][] *> [][]sr[][],[]
[]" /* c comment no.1 */int i; /* c comment no.2 */i = 1; /* c comment no.3 */ ++i; "[][] |[]
[]tokenized[][]<[][]c_comment[][]>()[]
[])[]
[]{[]
[]std[][]::[][]cout[][] << [][]construct[][]<[][]std[][]::[][]string[][]>([][]sr[][]) << [][]std[][]::[][]endl[][];[]
[]}[]