[nem-en] Lexer and whitespaces

Kamil Skalski kamil.skalski at gmail.com
Sun Apr 1 21:15:21 CEST 2007


AFAIR it is possible in MacOs
http://ccrma-www.stanford.edu/~craig/utility/flip/

2007/4/1, Sergei Tulentsev <sergei.tulentsev at gmail.com>:
> 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
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list