# HG changeset patch # User aziz # Date 1182638582 0 # Node ID c785c122e4e635344aa82f4f1312423037845646 # Parent d6adfbd7c5131853672a237a30ce0306ba83ec30 - Added code for parsing Colon, Semicolon, Question, Comma and Dollar. diff -r d6adfbd7c513 -r c785c122e4e6 trunk/src/Lexer.d --- a/trunk/src/Lexer.d Sat Jun 23 22:31:02 2007 +0000 +++ b/trunk/src/Lexer.d Sat Jun 23 22:43:02 2007 +0000 @@ -278,6 +278,22 @@ goto Lcommon; case '}': t.type = TOK.RBrace; + goto Lcommon; + case ':': + t.type = TOK.Colon; + goto Lcommon; + case ';': + t.type = TOK.Semicolon; + goto Lcommon; + case '?': + t.type = TOK.Question; + goto Lcommon; + case ',': + t.type = TOK.Comma; + goto Lcommon; + case '$': + t.type = TOK.Dollar; + goto Lcommon; Lcommon: ++p; t.end = p; diff -r d6adfbd7c513 -r c785c122e4e6 trunk/src/Token.d --- a/trunk/src/Token.d Sat Jun 23 22:31:02 2007 +0000 +++ b/trunk/src/Token.d Sat Jun 23 22:43:02 2007 +0000 @@ -25,6 +25,13 @@ RBracket, LBrace, RBrace, + + Colon, + Semicolon, + Question, + Comma, + Dollar, + EOF } diff -r d6adfbd7c513 -r c785c122e4e6 trunk/src/main.d --- a/trunk/src/main.d Sat Jun 23 22:31:02 2007 +0000 +++ b/trunk/src/main.d Sat Jun 23 22:43:02 2007 +0000 @@ -63,6 +63,7 @@ writef("
%s
", span); break; default: + writef("%s", span); } end = token.end; }