Forcing identifiers (variables) to be upper-case. Closes #8.

This commit is contained in:
Rob Greene 2018-05-15 20:43:30 -05:00
parent a6f01dcde0
commit 38bdbc901a

View File

@ -43,7 +43,7 @@ public class Token {
return new Token(line, Type.NUMBER, null, number, null);
}
public static Token ident(int line, String text) {
return new Token(line, Type.IDENT, null, null, text);
return new Token(line, Type.IDENT, null, null, text.toUpperCase());
}
public static Token comment(int line, String text) {
return new Token(line, Type.COMMENT, null, null, text);