-
as seen on Stack Overflow
- Search for 'Stack Overflow'
As the first stage of a larger grammar using Boost.Spirit I'm trying to parse "true" and "false" to produce the corresponding bool values, true and false.
I'm using Spirit.Lex to tokenize the input and have a working implementation for integer and floating point literals (including those expressed…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm having issues getting a small spirit/qi grammar to compile. The build stack trace is fugly enought to not make any sense to me (despite some assertion_failed i could notice in there but that didn't brought much information)
the input grammar header:
inputGrammar.h
#include <boost/config/warning_disable…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm having issues getting a small spirit/qi grammar to compile. i am using boost 1.43 and g++ 4.4.1.
the input grammar header:
inputGrammar.h
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am writing a small tool for analyzing simple B Machine substitutions as part of a college research work. The code successfully parse test inputs of the form mySubst := var1 + var2. However, I get a pop-up error message saying "This application has requested the Runtime to terminate it in an unusual…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using Boost.Spirit which was distributed with Boost-1.42.0 with VS2005. My problem is like this.
I've this string which was delimted with commas. The first 3 fields of it are strings and rest are numbers. like this.
String1,String2,String3,12.0,12.1,13.0,13.1,12.4
My rule is like this
qi::rule<string::iterator…
>>> More