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

Write a new parser? #9

Open
kmcallister opened this issue Feb 1, 2015 · 0 comments
Open

Write a new parser? #9

kmcallister opened this issue Feb 1, 2015 · 0 comments

Comments

@kmcallister
Copy link
Owner

We only support a tiny subset of Rust. It could be nice to have a 100 line grammar for shader programs instead of the grammar being the 6,000 line Rust parser + a pile of ad-hoc restrictions.

We could also make small changes to the syntax, e.g. removing the mandatory initializers on statics. As long as the tokens are compatible with Rust, the macro re-parses from source anyway.

Using the actual libsyntax parser was mostly a hack to get the proof of concept done in one day :P

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

1 participant