Mini-C example
Florian Klemme <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 03.08.2016 01:59, Frank Hein wrote: > Regarding your compiler implementation did you examine the mini-c > example provided with qi? Inspiring. Oh, it is! I haven't seen it before. I see, there is a lot of refactorization for me to do. ;-) I've seen that Joel uses multiple grammars to parse the source, but I can only find the instantiation of the function-parser in main(). Where are the others instantiated? Or how does this chain of grammars work? Also, what does this "body" member do? > template <typename Iterator> > function<Iterator>::function(error_handler<Iterator>& error_handler) > : function::base_type(start), body(error_handler) > name = > !body.expr.keywords > >> raw[lexeme[(alpha | '_') >> *(alnum | '_')]] > ; Florian ------------------------------------------------------------------------------ _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general