hey guys, i was trying to build a lexicon follwoing this tutotiral, while I was developing my tokening function they wrote this following line of code as the tokeniser detects each char typed:
while (expression.hasNext()) {
final Character currentChar = getValidNextCharacter(expression);
}
however there was no previous mention of the function ever described on the webpage: https://www.baeldung.com/java-lexical-analysis-compilation
I'm suspecting that this function was already written in the code and was named something else but I was under the assumption Gram had already taken care of this part. please help, here's a full context of the code Id dhave written so far: