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

Use nom for parsing #42

Open
kinggoesgaming opened this issue May 28, 2020 · 1 comment
Open

Use nom for parsing #42

kinggoesgaming opened this issue May 28, 2020 · 1 comment

Comments

@kinggoesgaming
Copy link
Contributor

nom is useful for efficiently and expressively declare parsing functionality

@onehr
Copy link
Owner

onehr commented May 29, 2020

Thanks, at the very beginning I thought it would be better to use hand-written parser for better error information, but as the progress moves on, I noticed that it would be easier to use parser generator to push the progress, since without actually generating formal IR, it's hard to add optimization or doing semantics checking, so I would consider give it a try to see whether I can push the compiler to a more formal stage. Thanks for your recommendation.

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

No branches or pull requests

2 participants