forked from luna/jorts
Luna
b7d5646bad
- 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
13 lines
169 B
Python
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
|