8000 Promote the rrd node tree to serve as a general IR for all dialects · Issue #24 · katef/kgt · GitHub
[go: up one dir, main page]

Skip to content

Promote the rrd node tree to serve as a general IR for all dialects #24

Open

Description

@katef

The AST is inconvenient; it has nesting of a forced hierarchy of particular types. In retrospect I think I'd prefer to construct rrd nodes directly. And now the tnode tree has positional information split off, I think these rrd nodes should serve well as an abstract representation of grammars for both transformation and for rendering to all outputs. In turn that makes the AST nodes redundant, and I think those can go.

So:

  1. Move the rrd nodes out for general use;
  2. Switch all outputs to the rrd nodes;
  3. Have all outputs share the tree rewriting;
  4. Construct the rrd nodes directly from parser actions;
  5. Remove AST;

And perhaps:
6. Rename rrd nodes to AST
7. Rename tnode to rrd?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0