Skip to content

Commit

Permalink
feat: add more tokens to java-lang and rename tokens to be more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 committed Jan 30, 2024
1 parent d00128f commit 5511d1b
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ enum class TokenType(val value: String) {
DOUBLE_EQUALS("=="),
PLUS("+"),
INCREMENT("++"),
PLUS_EQUALS("+="),
MINUS("-"),
DECREMENT("--"),
MINUS_EQUALS("-="),
ASTERISK("*"),
ASTERISK_EQUALS("*="),
FORWARD_SLASH("/"),
FORWARD_SLASH_EQUALS("/="),
MODULUS("%"),
MODULUS_EQUALS("%="),
BANG("!"),
NOT_EQUALS("!="),
GREATER_THAN_EQUALS_TO(">="),
Expand All @@ -41,16 +46,13 @@ enum class TokenType(val value: String) {
VERTICAL_BAR("|"),
DOUBLE_VERTICAL_BAR("||"),
CARET("^"),
CARET_EQUALS("^="),
QUESTION("?"),
COLON(":"),
SEMICOLON(";"),
COMMA(","),
DOT("."),

TILDE("~"),
LEFT_SHIFT("<<"),
RIGHT_SHIFT(">>"),
UNSIGNED_RIGHT_SHIFT(">>>"),

SINGLE_QUOTE("'"),
DOUBLE_QUOTE("\""),
Expand All @@ -63,7 +65,10 @@ enum class TokenType(val value: String) {
LEFT_SQUARE_BRACKET("["),
RIGHT_SQUARE_BRACKET("]"),
LEFT_ANGLE_BRACKET("<"),
DOUBLE_LEFT_ANGLE_BRACKET("<<"),
RIGHT_ANGLE_BRACKET(">"),
DOUBLE_RIGHT_ANGLE_BRACKET(">>"),
TRIPLE_RIGHT_ANGLE_BRACKET(">>>"),

// keywords
ABSTRACT_KEYWORD("ABSTRACT"),
Expand Down

0 comments on commit 5511d1b

Please sign in to comment.