[erlang-questions] Help with erl_parse / epp

Robert Virding <>
Fri Dec 11 01:36:33 CET 2009


2009/12/10 Brian Candler <>

> On Thu, Dec 10, 2009 at 06:17:13PM +0100, Richard Carlsson wrote:
> > It scans until it has found a "full stop" token, (represented
> > as {dot,Line}). In the source, this is a '.' character followed
> > by whitespace or eof. For example:
>
> Thank you, I see now.
>
> Is there a particular reason why it's better to do it there, rather than in
> the grammar? i.e.
>
>  forms -> forms form.
>  forms -> form.
>

It is much more versatile if you have it parse one form at a time.

Robert


More information about the erlang-questions mailing list