|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63699 - trunk/libs/spirit/example/qi/mini_c
From: hartmut.kaiser_at_[hidden]
Date: 2010-07-06 10:48:45
Author: hkaiser
Date: 2010-07-06 10:48:45 EDT (Tue, 06 Jul 2010)
New Revision: 63699
URL: http://svn.boost.org/trac/boost/changeset/63699
Log:
Spirit: Fixing problem with Qi example
Text files modified:
trunk/libs/spirit/example/qi/mini_c/mini_cc.hpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Modified: trunk/libs/spirit/example/qi/mini_c/mini_cc.hpp
==============================================================================
--- trunk/libs/spirit/example/qi/mini_c/mini_cc.hpp (original)
+++ trunk/libs/spirit/example/qi/mini_c/mini_cc.hpp 2010-07-06 10:48:45 EDT (Tue, 06 Jul 2010)
@@ -36,9 +36,11 @@
;
var_decl =
- "int"
- >> !(alnum | '_') // make sure we have whole words
- > !var_ref // make sure the variable isn't redeclared
+ lexeme[
+ "int"
+ >> !(alnum | '_') // make sure we have whole words
+ ]
+ > !var_ref // make sure the variable isn't redeclared
> identifier [add_var(_1)]
> (';' | '=' > assignment_rhs(ref(nvars)-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