Boost logo

Boost Users :

Subject: [Boost-users] Example calc4.cpp for others grammars
From: Olivier Austina (olivier.austina_at_[hidden])
Date: 2013-10-10 03:16:20

Hi all,

I would like to customize the example calc4.cpp at
the following grammar:

G-------> { A+; C}
A--------> {B; C}
B--------->E (like arithmetic expression grammar in calc4.cpp)

How to modifier this boost variant instruction for this grammar or there no
need to change it:

 typedef boost::variant<
          , unsigned int
          , boost::recursive_wrapper<signed_>
          , boost::recursive_wrapper<program>

In general what to put in boost variant for specific grammar (or AST). Any
suggestion is welcome. Thank you.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at