Mercurial > projects > dil
changeset 27:43b6bf56f0e9
- Added code for parsing CatAssign and Tilde tokens.
author | aziz |
---|---|
date | Sun, 24 Jun 2007 15:02:02 +0000 |
parents | c3d7373db241 |
children | 3a9daccf7d96 |
files | trunk/src/Lexer.d trunk/src/Token.d |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Lexer.d Sun Jun 24 12:26:02 2007 +0000 +++ b/trunk/src/Lexer.d Sun Jun 24 15:02:02 2007 +0000 @@ -327,6 +327,15 @@ else t.type = TOK.Assign; goto Lcommon; + case '~': + if (p[1] == '=') { + ++p; + t.type = TOK.CatAssign; + } + else + t.type = TOK.Tilde; + goto Lcommon; + // Single character tokens case '(': t.type = TOK.LParen; goto Lcommon;