Parser generator?

Roman D. Boiko rb at d-coding.com
Fri Jul 6 00:31:59 PDT 2012


On Friday, 6 July 2012 at 06:10:28 UTC, Philippe Sigaud wrote:
>> void buildGraph(Output o) {
>>         void parseToGraph(ParseTree p) {
>>                 writeln(p.ruleName);
>>         }
>>
>>         parseToGraph(o.parseTree);
>> }
> What do parseToGraph and buildGraph do?

buildGraph unwraps parseTree from output, and parseToGraph writes 
a line with rule name of a parse tree. ;)))


More information about the Digitalmars-d-learn mailing list