Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,117 of 2,753    |
|    Stefan Monnier to All    |
|    Re: Ignore break line sometimes    |
|    12 Feb 12 10:48:20    |
      From: monnier@iro.umontreal.ca              > So, in the first line, the '\n' after 'then' isn't important, but in the       > second "foo();" could replace the need of the semicolon to conclude the       > statement, or still, in the 'end'.              A simple approach is to treat every newline as a semi-colon, and then to       adapt your grammar so as to accept (and ignore) extra semi-colons.       I.e. accept "if true then; foo(); ; end; ;"                      Stefan              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca