Eliminate semicolons entirely.

This commit is contained in:
Bob Nystrom
2015-01-03 10:02:45 -08:00
parent c0043e78d4
commit c25cfca18b
6 changed files with 196557 additions and 24585 deletions
-4
View File
@@ -705,10 +705,6 @@ static void nextToken(Parser* parser)
case ']': makeToken(parser, TOKEN_RIGHT_BRACKET); return;
case '{': makeToken(parser, TOKEN_LEFT_BRACE); return;
case '}': makeToken(parser, TOKEN_RIGHT_BRACE); return;
// TODO: Should treat ";" differently from "\n". An elided newline
// makes sense, but an elided explicit ";" is weird. This should not be
// valid: a + ; b
case ';': makeToken(parser, TOKEN_LINE); return;
case ':': makeToken(parser, TOKEN_COLON); return;
case '.':
if (peekChar(parser) == '.')