[erlang-questions] Parsing C with leex and yecc

Tony Arcieri <>
Tue Jul 20 19:34:14 CEST 2010

On Tue, Jul 20, 2010 at 3:28 AM, Joe Armstrong <> wrote:

>   The traditional yacc/lex approach solves this with a context
>   sensitive lex and feedback between yacc and lex. But the Erlang
>   leex and yacc seem to be written as separated passes, are there some
>   internal functions that allow feedback between leex and yacc?

I've run into the need for lexer/parser feedback myself, specifically
processing interpolated strings (that contain expressions from the outer
language) in Reia.  I haven't found a good solution.  Interpolation works
but only on a subset of expressions... for example you can't nest strings
within strings.

Have you thought about using neotoma?

Tony Arcieri
Medioh! A Kudelski Brand

More information about the erlang-questions mailing list