You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
Change the AST module to use nodes of the following scheme:
@dataclassclassNode:
name: strtype: str# One of the possible types, sub classes such as VariableNode can use base types herevalue: Anybelow: Optional[List["Node"]] =None# Requires from __future__ import annotationsarguments: Optional[List[str]] =None# Subject to of change, arguments or annotations for the node
Sub classes will inherit from them but use a custom __init__ method. The nodes of a program are stored in a list containing one item, the program node (contains args passed from the shell and the name of the file).
Todo:
Change existing nodes
Add more nodes
Rewrite parser to use new AST system
The text was updated successfully, but these errors were encountered:
Change the AST module to use nodes of the following scheme:
Sub classes will inherit from them but use a custom
__init__
method. The nodes of a program are stored in a list containing one item, the program node (contains args passed from the shell and the name of the file).Todo:
The text was updated successfully, but these errors were encountered: