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

Make the scanner more elegant #5

Open
phisiart opened this issue Jan 14, 2016 · 0 comments
Open

Make the scanner more elegant #5

phisiart opened this issue Jan 14, 2016 · 0 comments
Assignees

Comments

@phisiart
Copy link
Owner

  1. Scanners for keywords and operators might use the Trie data structure.

  2. Other scanners whose state transition tables need to be handwritten should be written in a more elegant way.
    For example:

    static {
        ...
        someState.On(somePredicate).Goto(someOtherState);
        ...
    }
    
@phisiart phisiart self-assigned this Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant