package Compiler; public class Token { //Stores the token type, the actual text and the runtime object public final TokenType type; final String text; final Object value; final int line; Token(TokenType type, String text, Object value,int line){ this.type=type; this.text=text; this.value=value; this.line=line; } @Override public String toString() { return type + " " + text + " " + value; } }