[nem-en] Lexer and whitespaces
Sergei Tulentsev
sergei.tulentsev at gmail.com
Sun Apr 1 21:12:41 CEST 2007
For the purpose of code formatting I want to try to make a lexer that
doesn't ignore whitespaces, but adds them to the output.
While reading existing code, I encountered this:
ncc/Parsing/Lexer.n, line 929
match (ch) {
| ' ' | '\t' => loop (true);
| '\n' | '\r' => // Single \r interpret as new line!
white_beginning = true;
loop (true)
Is this message commenting bug or a feature? :-)
Is there an environment where \r means newline?
--
Best wishes,
Sergei Tulentsev
Software engineer.
Sitronics Telecom Solutions, Moscow
mob: + 7 916 507 7112
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070401/101a2755/attachment.html
More information about the devel-en
mailing list