Dear Ovid,
Thank you for such helpful module. Let me ask you for two features:
- Parse::Yapp and Parse::Eyapp generated parsers use a pair protocol
(TOKEN, VALUE) instead of a reference [TOKEN, VALUE]. Can we have an
option 'PROTOCOL' that will change the protocol to suit Parse::E?Yapp
needs? That means that EOF is marked by the pair ('', undef)
instead of undef.
- On any serious parser - in order to produce accurate error messages -
we need to keep record of line numbers.
Can we have an option "LINENUMBERS" that when activated will change the
behavior of the generated lexer, returning as an additional information
the line number where the token begins? something like:
(TOKEN, [ VALUE, LINENUMBER])
or may be this instead
(TOKEN, { VAL => VALUE, LINENUMBER => LINENUMBER})
we can certainly do it with the current API adding some code but
I feel it clutters the description of the lexer.
Many thanks for your work
Casiano