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

Refractor automatons code and lexer code #5

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

Refractor automatons code and lexer code #5

TomasCartman opened this issue Feb 28, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@TomasCartman
Copy link
Owner

The automatons should have a function to return a token when asked if it is in a valid state to generate the token. This will remove a lot of "if" code from the lexer, which should not be doing these tests.

A Token class should be created.

@TomasCartman TomasCartman added the enhancement New feature or request label Feb 28, 2021
@TomasCartman TomasCartman self-assigned this Feb 28, 2021
TomasCartman added a commit that referenced this issue Mar 1, 2021
…necessary [issue #3] | fix problem with three or more relation operators in sequence, the automaton just puts as invalid lexeme when the string recieved has length of 3 or more [issue #4] | refractor automaton code to be more understandable and use strings instead of char when is possible, making a short readable code [issue #5]
@TomasCartman
Copy link
Owner Author

fixed by commit 7d1fcd4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant