Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to valid token "!=" #2

Closed
TomasCartman opened this issue Feb 26, 2021 · 1 comment
Closed

Problem to valid token "!=" #2

TomasCartman opened this issue Feb 26, 2021 · 1 comment
Assignees
Labels
invalid This doesn't seem right

Comments

@TomasCartman
Copy link
Owner

In the diagram, after the state zero, all the other states are already valid states without a second char, excpet state two, which is represented by "!", it needs to be followed by a "=" like "!=" to be a valid token. it must be decided if the lexer.kt will reset the automaton or the automaton itself will do this job, and so implements and use the operator lookahead to test if after a "invalid" char "!" we can get a valid token "!=" by looking the following char.

@TomasCartman TomasCartman added the invalid This doesn't seem right label Feb 26, 2021
@TomasCartman TomasCartman self-assigned this Feb 26, 2021
@TomasCartman
Copy link
Owner Author

TomasCartman commented Feb 27, 2021

fixed by commit ba20515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant