27 Jun
2005
27 Jun
'05
11:15 p.m.
Misza wrote:
I've recently switched from YACC to Spirit and I've been trying to rewrite some examples from YACC manual, starting with a RPN calculator. Based on http://www.boost.org/libs/spirit/doc/grammar.html I made something like this:
[...] Have you tried the examples? In particular, see spirit/example/fundamental/more_calculators/rpn_calc.cpp If you have more questions, the proper list for posting Spirit related questions is: https://lists.sourceforge.net/lists/listinfo/spirit-general In general, Yacc based grammars don't map directly to Spirit. The LR grammar must first be converted to LL. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net