jorts/jortsc/parser/ast_nodes.py
Luna b7d5646bad add classes for AST nodes
- add Reader.expect, Reader.next_safe
 - fix fn_read_args, use TypedVar
 - use Reader.expect in read_function's post-fn check
 - use Function in read_function
 - add basics of blocks using { and } in read_start
2019-03-10 02:13:22 -03:00

13 lines
169 B
Python

from dataclasses import dataclass
@dataclass
class TypedVar:
type_: str
name: str
@dataclass
class Function:
name: str
arguments: str
block: list