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

Rewrite lexer #2

Open
Vild opened this issue May 27, 2016 · 1 comment
Open

Rewrite lexer #2

Vild opened this issue May 27, 2016 · 1 comment

Comments

@Vild
Copy link
Owner

Vild commented May 27, 2016

The lexer is currently really really slow because of all the compile time code generation, This must be fixed!
Why is is so slow currently is because it overuses ctRegex to match for tokens, this should be change to something else that isn't regex, but still is as fast as the ctRegex result (hopefully).

@shaybix
Copy link

shaybix commented Jun 6, 2016

https://www.youtube.com/watch?v=HxaD_trXwRE

the concept employed in Go templating could very much be used here. I tremendously benefited from this talk on Lexical Analysis.

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

3 participants