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;


    Token(TokenType type, String text, Object value){
        this.type=type;
        this.text=text;
        this.value=value;

    }

    @Override
    public String toString() {
        return type + " " + text + " " + value;
    }
}