Skip to content

Conversation

@mccanne
Copy link
Collaborator

@mccanne mccanne commented Oct 8, 2025

This commit unifies the naming patterns of the AST to be consistent with the DAG and the semantic tree. Ops have suffixes "Op" and ast.Exprs have suffix "Expr".

We removed the Kind field from structs that aren't part of sum types. We also separate ast.ID into ID and IDExpr to differentiate the use of ID in an expression versus identifiers in other non-expression entities.

There are further improvements that can be made but this is a big step in the right direction.

This commit unifies the naming patterns of the AST to be consistent
with the DAG and the semantic tree.  Ops have suffixes "Op" and
ast.Exprs have suffix "Expr".

We removed the Kind field from structs that aren't part of sum types.
We also separate ast.ID into ID and IDExpr to differentiate the
use of ID in an expression versus identifiers in other non-expression
entities.

There are further improvements that can be made but this is a big step
in the right direction.
@mccanne mccanne merged commit 6d4d27a into main Oct 8, 2025
3 checks passed
@mccanne mccanne deleted the uniform-ast branch October 8, 2025 13:46
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.

3 participants