lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I've just finished reading Mr Ierusalemschi's 2008 paper on Lua
Parsing Expression Grammars, and I'm very enthusiastic about the
possibilities of PEG in general. Especially the intermediate language
that it produces (because I want to play with creating an engine that
executes that code). And there lies a bit of a problem for me: I
cannot seem to make the traditional PEG libraries output the
intermediate language, for example in the form that is also used in
the paper (the 'ASM' of the language, with the instructions 'Char',
'Jump', etc). Is there a way to use the PEG library much more
modularly, in a way that, for example, a C compiler can generally also
output ASM? Thanks!