Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final class Token {
- public final String value;
- public final TokenType type;
- public final int line, column;
- public Token(TokenType type, String value, int line, int column) {
- this.value = value;
- this.type = type;
- this.line = line;
- this.column = column;
- }
- @Override
- public String toString() {
- return "(" + type.name().toLowerCase() + " - " + value + ")";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement