Boost logo

Boost :

Subject: Re: [boost] [Spirit] Retrieve informations out of tokens
From: Andreas Pokorny (andreas.pokorny_at_[hidden])
Date: 2013-06-26 15:50:58


A good starting point for writing a lexer is the conjure tutorial:

and of course epoch:

Regarding tokenize vs tokenize_and_parse: the former executes the lexer on
the input, and the latter also passes the iterators received from the lexer
to the qi parse expression.

You could have a look at clang since it is implemented as a recursive
descent parser .. just for reference.
In general I think it might be quite entertaining to do the nasty and
ambiguous parts of C++ with qi's dynamic parsers.


Boost list run by bdawes at, gregod at, cpdaniel at, john at