[antlr-interest] Match the start and end of a line
Gavin Lambert
antlr at mirality.co.nz
Thu Dec 25 01:58:21 PST 2008
At 22:17 25/12/2008, Gary R. Van Sickle wrote:
>translation_unit
> : (BOL statement EOL)+
> ;
>
>You'd have to be throwing up WS tokens as well though for
>that to be buying you anything.
Actually even in that case it doesn't really buy you anything,
unless EOLs can occur in other contexts as well. (And even then
it's doubtful -- it'd just make parsing harder.)
But I think the OP would need to explain a bit more about *why*
they're interested in line beginnings and endings before we can be
of more help.
More information about the antlr-interest
mailing list