Skip to content

TODO: Separate AST traversal from codegen #17

@rail5

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.

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