Mercurial > projects > dil
comparison trunk/src/dil/LexerFuncs.d @ 494:9a7ca8c56e59
Refactored a few things in the Parser.
Removed unnecessary 'bool hasBody' parameter from some declarations.
Added shebang to list of tokens in Lexer unittest.
Added some semantic methods.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 07 Dec 2007 18:22:35 +0100 |
parents | 47be6bfe39cd |
children | 5a607597dc22 |
comparison
equal
deleted
inserted
replaced
493:d13502b6fa5f | 494:9a7ca8c56e59 |
---|---|
57 ++p; | 57 ++p; |
58 return '\n'; | 58 return '\n'; |
59 default: | 59 default: |
60 if (isUnicodeNewline(p)) | 60 if (isUnicodeNewline(p)) |
61 { | 61 { |
62 ++p; ++p; ++p; | 62 p += 3; |
63 return '\n'; | 63 return '\n'; |
64 } | 64 } |
65 } | 65 } |
66 return 0; | 66 return 0; |
67 } | 67 } |