#Lexicon Calculator

7 messages · Page 1 of 1 (latest)

inner blaze
#

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:

Baeldung on Kotlin

Learn the fundamentals of lexical analysis and build a simple arithmetic lexer in Java.

sleek lotusBOT
#

This post has been reserved for your question.

Hey @inner blaze! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

sleek lotusBOT
sleek lotusBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

somber trout
#

from the expression