Skip to content

Parser: add explicit body discriminators - #690

Open
zhenrongliew wants to merge 1 commit into
dl/generalize-bodyfrom
dl/parse-bodies
Open

Parser: add explicit body discriminators#690
zhenrongliew wants to merge 1 commit into
dl/generalize-bodyfrom
dl/parse-bodies

Conversation

@zhenrongliew

Copy link
Copy Markdown
Collaborator

fixed the parser to be:
CFG:

    fn @f(...) -> T cfg {
      ^entry(...) {
        ...
      }
    }

Standalone Block body:

    fn @f(...) -> T block ^body(...) {
      ...
    }

DiGraph:

    fn @f(...) -> T digraph ^g0(...) {
      ...
    }

UnGraph:

    fn @f(...) -> T ungraph ^u0(...) {
      ...
    }

A CFG’s constituent blocks remain untagged:

    ... cfg {
      ^entry { ... }
      ^next { ... }
    }
    ```

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

Successfully merging this pull request may close these issues.

2 participants