[erlang-questions] extending the scanner and parser

Robert Virding rvirding@REDACTED
Thu Oct 9 01:01:57 CEST 2008


2008/10/6 Kenneth Lundin <kenneth.lundin@REDACTED>

> On Sat, Oct 4, 2008 at 8:27 PM, Vlad Dumitrescu <vladdu55@REDACTED>
> wrote:
> > On Sat, Oct 4, 2008 at 20:15, Robert Virding <rvirding@REDACTED> wrote:
> >> Another solution which may help you is to use leex for generating the
> >> scanner.
> As I said we plan to integrate the required functionality in the
> official scanner and we can not
> have dependencies to components which are not part of the distribution
> in the scanner.
> We also already have the scanner so there is really no need to
> implement a new one with Leex.


Yes, but there is a BIG difference between modifying the output when using
leex  and going in and hacking the erlang scanner. With leex is is easy to
see what you generate. However it is probably more difficult to make leex
save more information and make it available to the user, or perhaps not. As
far as I know there is only one thing which leex cannot handle today in the
erlang syntax and that is that leex needs a newline at the end of the file,
the erlang scanner does not.

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081009/9814fa7f/attachment.htm>


More information about the erlang-questions mailing list