package org.nwapw.abacus.tree;

/**
 * Enum to represent the type of the token that has been matched
 * by the lexer.
 */
public enum TokenType {

    INTERNAL_FUNCTION_END(-1),
    ANY(0), WHITESPACE(1), COMMA(2), OP(3), NUM(4), FUNCTION(5), OPEN_PARENTH(6), CLOSE_PARENTH(7);

    /**
     * The priority by which this token gets sorted.
     */
    public final int priority;

    /**
     * Creates a new token type with the given priority.
     *
     * @param priority the priority of this token type.
     */
    TokenType(int priority) {
        this.priority = priority;
    }

}

@@ -222,16 +222,29 @@
  NUM(4),
+ VARIABLE(5),
  FUNCTIO
@@ -245,17 +245,17 @@
 UNCTION(
-5
+6
 ), OPEN_
@@ -262,17 +262,17 @@
 PARENTH(
-6
+7
 ), CLOSE
@@ -280,17 +280,17 @@
 PARENTH(
-7
+8
 );%0A%0A    

Add a new TokenType for variables.