Nested Quasis

Mark S. Miller erights at google.com
Thu Feb 2 11:11:24 PST 2012


On Thu, Feb 2, 2012 at 11:03 AM, Mark S. Miller <erights at google.com> wrote:

>
> Of course, if you don't need to keep you parser and lexer so strongly
> separated, you can just use the above grammar directly as a one-level
> grammar, where you use the full expression parser after the "{". This is
> what I did the first time in E. Either way works. The reason I changed to
> the looser coupling is so that I could fully lex a program that didn't
> parse, so I could give more informative error messages.
>

This loose coupling is also exactly what we want for syntax highlighting.
Syntax highlighting mainly (always?) distinguishes lexical categories, so
we want it to be accurate for a program with only parse errors.

-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120202/f63b0b75/attachment.html>


More information about the es-discuss mailing list