Юрушкин Михаил wrote:
> David-Sarah Hopwood <[email protected]> писал(а) в своём письме:
>> Юрушкин Михаил wrote:
>>> mm.. empty lines can be in every place of grammar: between statements,
>>> procedures, declarations etc where empty_statement rule isn't exist.
>>> I think it's important to skip redudant <\n> on lexer level... but i
>>> don't know how to do that clearly (without overriding nextToken for
>>> example).
>>
>> Can that not be done by using '\n'+ where you had '\n' before?
> 
> yes=) it was relly simple(
> excuse me and thanks!

Bear in mind that this won't allow a blank line at the start of the
input, though. If that should be allowed, then you may still need a
blank procedure rule (assuming procedures can occur at top-level).

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to