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

New compiler pipeline #17

Open
Astavie opened this issue Jun 28, 2024 · 0 comments
Open

New compiler pipeline #17

Astavie opened this issue Jun 28, 2024 · 0 comments

Comments

@Astavie
Copy link
Collaborator

Astavie commented Jun 28, 2024

We're doing too much at once right now.

Idea for the new pipeline:

  1. Tokens
  2. AST
  3. AST + Semantic Analysis
    • the AST is kept as is, maybe with package information removed
    • identifiers are linked to their definitions
  4. Typed Polymorphic IR
    • type-checking while the AST is converted to an IR format
  5. Monomorphized IR
    • remove polymorphism and effects
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