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

Refactor towards nanopass style chaining #27

Open
pliniker opened this issue Jul 7, 2020 · 0 comments
Open

Refactor towards nanopass style chaining #27

pliniker opened this issue Jul 7, 2020 · 0 comments
Labels
compiler Area: compiling data structures Area: internal data structures hard Experience and/or subject matter knowledge required parser Area: lexing and parsing

Comments

@pliniker
Copy link
Member

pliniker commented Jul 7, 2020

See discussion on rust-hosted-langs/runtimes-WG#11 regarding the nanopass concept.

In my opinion this is a very relevant idea for this book, given that half the purpose is to provide a baseline for others to build on (in addition, of course, to making it easier to implement LSP or analytics.)

  • How should the interpreter code be refactored to move toward the nanopass concept? Separate crates for parsing and compiling?
  • What should the interface look like between passes? What types?
@pliniker pliniker added compiler Area: compiling data structures Area: internal data structures hard Experience and/or subject matter knowledge required parser Area: lexing and parsing labels Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Area: compiling data structures Area: internal data structures hard Experience and/or subject matter knowledge required parser Area: lexing and parsing
Projects
None yet
Development

No branches or pull requests

1 participant