Added note to add more values to token later.

This commit is contained in:
Jonathan Turner 2023-10-07 11:55:49 -04:00
parent a07a80883c
commit 43254adcf2

View File

@ -1,6 +1,7 @@
package edu.jt_kb.cs4308.compiler.models; package edu.jt_kb.cs4308.compiler.models;
public enum Token { public enum Token {
// Generic values setup from the example table used on the assignment description. Need to add more/setup more later.
IDENT(0),ASS_OP(1),SUB_OP(2),DIV_OP(3),INT_LITERAL(4),SEMICOLON(5); IDENT(0),ASS_OP(1),SUB_OP(2),DIV_OP(3),INT_LITERAL(4),SEMICOLON(5);
public final int value; /* represents which Token you are referencing. */ public final int value; /* represents which Token you are referencing. */