Skip to content

[Refactor] VariableLiteralNode, RuleV2 dataclass, and dead code cleanup#108

Open
colinthebomb1 wants to merge 3 commits into
colin/rule-generator-v2from
colin/element-variable-nodes
Open

[Refactor] VariableLiteralNode, RuleV2 dataclass, and dead code cleanup#108
colinthebomb1 wants to merge 3 commits into
colin/rule-generator-v2from
colin/element-variable-nodes

Conversation

@colinthebomb1
Copy link
Copy Markdown
Collaborator

Summary

  • Add VariableLiteralNode AST node for wildcard string literals (e.g. LIKE '%<x>%'), replacing string sentinel handling in
    the parser, rewriter, formatter, and generator
  • Update parser to emit ElementVariableNode for variable columns/tables (already in AST, now used at parse time instead of
    post-processing)
  • Introduce RuleV2 typed dataclass (core/rule.py) replacing Dict[str, object] rule representations throughout generator and
    data/rules.py
  • Dead code removal and simplifications: ~500 lines deleted net across rewriter, generator, and formatter

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.

1 participant