|
@@ -15,6 +15,7 @@ from typing import List |
|
|
from dataclasses import dataclass |
|
|
from dataclasses import dataclass |
|
|
|
|
|
|
|
|
from lark import Lark, ast_utils, Transformer, v_args |
|
|
from lark import Lark, ast_utils, Transformer, v_args |
|
|
|
|
|
from lark.tree import Meta |
|
|
|
|
|
|
|
|
this_module = sys.modules[__name__] |
|
|
this_module = sys.modules[__name__] |
|
|
|
|
|
|
|
@@ -32,7 +33,8 @@ class _Statement(_Ast): |
|
|
|
|
|
|
|
|
@dataclass |
|
|
@dataclass |
|
|
class Value(_Ast, ast_utils.WithMeta): |
|
|
class Value(_Ast, ast_utils.WithMeta): |
|
|
meta: object |
|
|
|
|
|
|
|
|
"Uses WithMeta to include line-number metadata in the meta attribute" |
|
|
|
|
|
meta: Meta |
|
|
value: object |
|
|
value: object |
|
|
|
|
|
|
|
|
@dataclass |
|
|
@dataclass |
|
|