Repository navigation
SmaCC: Transforming the AST #4117
|
I understand that I can transform the source code but are there examples of transforming the AST? For example, I would like to type-check my CPU architecture AST and replace string identifiers with instances of register classes, instructions, etc. @j-brant |
Answered by
j-brant
Oct 22, 2024
Replies: 2 comments
|
The Transformations section of the SmaCC booklet says
Are these Are there any examples of using these, as well as matching primitives like |
0 replies
|
If I'm doing large scale changes, I use the transformation toolkit. For example, here's what I use to convert antlr grammars: |
0 replies
Answer selected by
joelreymont
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I'm doing large scale changes, I use the transformation toolkit. For example, here's what I use to convert antlr grammars: