12 Jan 07:45
proto breaking changes (and patch for spirit2)
From: Eric Niebler <eric <at> boost-consulting.com>
Subject: proto breaking changes (and patch for spirit2)
Newsgroups: gmane.comp.parsers.spirit.devel
Date: 2008-01-12 06:48:31 GMT
Subject: proto breaking changes (and patch for spirit2)
Newsgroups: gmane.comp.parsers.spirit.devel
Date: 2008-01-12 06:48:31 GMT
I've committed to boost svn head a new version of proto with improved transforms. This is a breaking change. There isn't documentation yet for the new transforms, so I made a patch that gets Spirit-2 working again. (At least, it works with msvc, but there appear to be other problems with spirit-2 and gcc which are unrelated.) Patch attached. Cheers, -- Eric Niebler Boost Consulting www.boost-consulting.com
Index: boost/spirit/lex/lexer/meta_grammar.hpp
===================================================================
--- boost/spirit/lex/lexer/meta_grammar.hpp (revision 785)
+++ boost/spirit/lex/lexer/meta_grammar.hpp (working copy)
@@ -99,11 +99,11 @@
// semantic actions for tokens
meta_grammar::binary_rule<
lex::domain, proto::tag::subscript, action,
- token_def_meta_grammar, proto::transform::arg<proto::_>
+ token_def_meta_grammar, proto::when<proto::_, proto::_arg>
>,
meta_grammar::binary_rule<
lex::domain, proto::tag::subscript, action,
- action_lexer_meta_grammar, proto::transform::arg<proto::_>
+ action_lexer_meta_grammar, proto::when<proto::_, proto::_arg>
>
(Continue reading)
RSS Feed