Example calc4.cpp for others grammars

10 Oct
2013
10 Oct
'13
7:16 a.m.
Hi all,
I would like to customize the example calc4.cpp at
http://www.boost.org/doc/libs/1_47_0/libs/spirit/example/qi/compiler_tutoria...
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<
nil
, unsigned int
, boost::recursive_wrapper
4188
Age (days ago)
4188
Last active (days ago)
0 comments
1 participants
participants (1)
-
Olivier Austina