pylasu
pylasu copied to clipboard
Adding support for ASTs with `Set` type parameters to `ASTTransformer` would be valuable. For example, have the ability to address the following metamodel (with a `Set` type parameter) in a...
If the AST structure is defined without using the `@dataclass` decorator, that is, by defining (manually) the constructor method of the classes and the getter and setter methods of each...
Or rather they're overwritten in the subclass when inheriting.
At least a test uses it: [tests/transformation/test_ast_transformers.py](https://github.com/Strumenta/pylasu/pull/19/files/f26c4d12530332f1940e1066e8ffec7343b64181#diff-29ac20794e20c6f888bd5eb9d7777bd7165173016270ea5dca81a7fd50682b33)
It could look similar to this: ``` class MyListener(ErrorListener): issues: list[Issue] issue_type: IssueType def __init__(self, issues: list[Issue], issue_type: IssueType): self.issues = issues self.issue_type = issue_type def syntaxError(self, recognizer, offendingSymbol, line,...
Requires #15