Skip to content

Add CLI command for printing AST without having it lowered #1043

Closed

Description

@aljazerzen

We have multiple commands for the cli: parse, format, resolve, compile.

Resolve returns the IR (after lowering). For debugging purposes we would need to a command to print AST after resolving, before being lowered.

For that I suggest a new function is added alongside semantic::resolve named semantic::resolve_only that does not the the lowering. And also add a new resolve-debug command (with a possibly better name).

Activity

  1. added
    good first issue
    on Oct 18, 2022
  2. self-assigned this
    on Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions