Skip to content

TODO: Separate AST traversal from codegen #17

Description

@rail5

Currently, the compiler generates code at the same time that it traverses the parse tree and builds the high-level IR (the entity tree). In fact, codegen is very tightly coupled with this IR.

By separating parse tree traversal and codegen, we can lay the foundation for a future optimizer in the Bash++ compiler. Code generation should be a later pass over the IR.

Even without an optimizer this makes architectural sense. The language server, for example, needs to traverse the parse tree but has no need to generate code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions