Lexer will pass the original tokens even if it can be inferred to match the type of terminal defined in .cup file.
This commit is contained in:
@@ -39,7 +39,7 @@ import java.util.ArrayList;
|
||||
/** Return a terminal symbol of syntactic category TYPE and no
|
||||
* semantic value at the current source location. */
|
||||
private Symbol symbol(int type) {
|
||||
return symbol(type, null);
|
||||
return symbol(type, yytext());
|
||||
}
|
||||
|
||||
/** Return a terminal symbol of syntactic category TYPE and semantic
|
||||
|
||||
Reference in New Issue
Block a user