Strumenta / tylasu

Apache License 2.0
20 stars 4 forks source link

Transformers (porting from Kolasu) #25

Closed elisacostantini closed 1 year ago

elisacostantini commented 1 year ago

Our standard way to express mappings from parse tree to AST and AST-AST in Starlasu

https://github.com/Strumenta/kolasu/blob/master/core/src/main/kotlin/com/strumenta/kolasu/transformation/Transformation.kt


It supports multiple mappings for a parse-tree node (the current method does not), and it is possible to chain more transformations

It’s the natural place for collecting semantic issues instead of storing them as error nodes in the AST.

Note: also showcase in the hello world project and explain on Slack if needed

elisacostantini commented 1 year ago

We will work on porting from Kolasu of a transformer from the parse tree to AST as a part of this task on the week from the 16th Jan.