Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Jean-Damien Durand
May 21, 2013, 10:24 pm
rate this thread
Advised by PAUSE to announce it, here is a new module that is a C source
code translation to AST using the Marpa BNF parser.
The name of the module is MarpaX::Languages::C::AST, in alpha-stage.
Please note that this module is not a compiler, it is:
- (more than) a proof (of concept) that the Marpa parser is a mature and
truely powerful BNF engine
- an implementation of the C ISO 2011 grammar on top of Marpa, with the
dangling-else and typedef/enum/identifier ambiguities solved, so that a
single parse tree value should come out when you feed it with a pure C
I say pure C source code, i.e. no preprocessor directives, etc, that
could come out with another implementation on top of Marpa OOTD.