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,115 of 2,753    |
|    Geovani de Souza to All    |
|    Ignore break line sometimes    |
|    11 Feb 12 06:56:17    |
      From: geovanisouza92@gmail.com              Hi all!              I'm trying write an parser to my compiler, and I'm interessed to ignore the       break line (\n) sometimes. E.g:              if true then [\n]        foo(); [\n]       end; [\n]              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'.              Too ignore '\n' in the white lines.              How can I do this?              --- 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