[erlang-questions] extending the scanner and parser

Robert Virding rvirding@REDACTED
Sat Oct 4 20:15:22 CEST 2008

Another solution which may help you is to use leex for generating the
scanner. It gives you much more freedom in deciding what to return, so you
could return both the value and/or the chars if you wish. However, I don't
think it will give all the data you want, you can the line number,
characters and length of each token.

If you want to use yecc for generating the parser, which really does
simplify matters,  you have to a little circumspect because it only accepts
tokens in the form {Type,Line} or {Type,Line,Value}. It does place any
restrictions on the vaule.


2008/10/3 Vlad Dumitrescu <vladdu55@REDACTED>

> On Fri, Oct 3, 2008 at 18:18, Kenneth Lundin <kenneth.lundin@REDACTED>
> wrote:
> > It is in our plans to have that support in our standard scanner in some
> way.
> > Can not promise when but hopefully next year some time.
> That's wonderful to know!
> I suppose that it wouldn't hurt if we (the tool makers) would start
> right away to tinker with it so that when you're ready you will have
> something almost ready to work with, would it?
> best regards,
> Vlad
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081004/4e4a6070/attachment.htm>

More information about the erlang-questions mailing list