-
Notifications
You must be signed in to change notification settings - Fork 27
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
Replace parser with one made by Racc #62
Conversation
while !scanner.eos? do | ||
start = scanner.pos | ||
case | ||
when scanner.scan(/\$(<[a-zA-Z0-9_]+>)?\$/) # $$, $<long>$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If don't need to use the result of scan
, you can try to use skip
and save a lot of allocations and improve the performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar what I did in this PR #102
f7ae7f6
to
c9f0cfd
Compare
I'm excited to merge this PR! Greatly appreciate your hard work 🎉 |
Generate the parser of grammar file with Racc and replace it from original parser.
TODOs
parse.y
Replace the parser with the original