package Compiler; /** * Class for storing information about a single token */ public class Token { public final TokenType type; final String text; final Object value; final int line; /** * Contructor for a token object * @param type the type of token * @param text the actual text for the token * @param value the value the token represents * @param line the line of code the token is on */ Token(TokenType type, String text, Object value,int line){ this.type=type; this.text=text; this.value=value; this.line=line; } }