Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2005-06-27 18:15:45


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net