I write a minimum example to demonstrate this problem. It parses nested list of numbers like (1 2 3 (4 5) (6 (7 (8)))). I use spirit::lex to parse num ...
I write a minimum example to demonstrate this problem. It parses nested list of numbers like (1 2 3 (4 5) (6 (7 (8)))). I use spirit::lex to parse num ...
I long time didnt work with boost::spirit and back again. And stuck at simple case (omg, sometimes I want to kill this library...why why why so simple ...
Recently, I asked a question here: Boost Spirit Segfault In Parser In this post it was pointed out the grammar I was working with was absolutely left ...
I'm converting a Boost Spirit Lex program to the static lexer model. The lexer has a semantic action, therefore the dynamic lexer is of type actor_lex ...
This does not compile (code below). There was another question here with the same error. But I don't understand the answer. I already tried inserting ...
Is there a way to recognize specific patterns case-insensitively? E.g. if I have How can I match true, TRUE, tRuE while avoiding to write [Tt][Rr ...
Let's consider following code: It is a simple parser for arithmetic expressions with values and variables. It is build using expression_lexer for e ...
Let's consider following code: It is a simple parser for arithmetic expressions with values and variables. It is build using expression_lexer for e ...
How I can check in next code that value of last tok.identifier is '='-character? EDIT. I declare identifier lex::token_def<std::string> iden ...
I've been going through the Boost.Spirit X3 documentation I've been able to find---which isn't much---and think I would like to use this for my next p ...
I am continuing to learn the Boost Spirit library and I have some issue with example that I couldn`t compile. The source of example you can find here: ...
I am continuing to learn the Boost Spirit library and have comile issue with example that I couldn`t compile. The source of example you can find here: ...
I'm using boost::spirit lex and qi to parse some source code. I already skip white spaces from the input string using the lexer. What I would like to ...
In an application, I basically want to have a "pre-parsing" phase where I adjust the token stream before a Qi parser can see it. One way to do this w ...
Code below compiles fine with clang++ -std=c++11 test.cpp -o test But when running an exception is thrown terminate called after throwing a ...
I would like to match a C++ function declaration with default argument values, but ignoring these values. For example: Here is (a part of) the lexe ...
I am trying to use lexer states to do context specific parsing, but it seems that different lexer states do cross-pollinate. Here is a very basic exam ...
I'm doing a simple lexer/parser with boost::spirit. This is the lexer : I defined two identical patterns : WORD and NAME_CONTENT. This is the gra ...
I use Boost.Spirit.Lex and .Qi for a simple calculator project and (as usual) it gives me some pain to debug and use. The debug prints: This excep ...
So my question is quite simple, in my lexer class (extending lex::lexer<T>), I have the following; Inside my constructor, which compiles just ...