On Thu, Feb 2, 2012 at 11:03 AM, Mark S. Miller <[email protected]> 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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to