Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61422 - trunk/libs/spirit/example/scheme/qi
From: hartmut.kaiser_at_[hidden]
Date: 2010-04-20 09:17:32


Author: hkaiser
Date: 2010-04-20 09:17:32 EDT (Tue, 20 Apr 2010)
New Revision: 61422
URL: http://svn.boost.org/trac/boost/changeset/61422

Log:
Spirit: resolved precedence problems in Qi parser
Text files modified:
   trunk/libs/spirit/example/scheme/qi/qiexpr_parser.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/spirit/example/scheme/qi/qiexpr_parser.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/qi/qiexpr_parser.hpp (original)
+++ trunk/libs/spirit/example/scheme/qi/qiexpr_parser.hpp 2010-04-20 09:17:32 EDT (Tue, 20 Apr 2010)
@@ -183,11 +183,11 @@
 
             // unary operators
             unary_term =
- '*' >> alternative [ make_kleene(_val, _1) ]
- | '+' >> alternative [ make_plus(_val, _1) ]
- | '-' >> alternative [ make_optional(_val, _1) ]
- | '&' >> alternative [ make_and_pred(_val, _1) ]
- | '!' >> alternative [ make_not_pred(_val, _1) ]
+ '*' >> term [ make_kleene(_val, _1) ]
+ | '+' >> term [ make_plus(_val, _1) ]
+ | '-' >> term [ make_optional(_val, _1) ]
+ | '&' >> term [ make_and_pred(_val, _1) ]
+ | '!' >> term [ make_not_pred(_val, _1) ]
                 | term [ _val = _1 ]
                 ;
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk