scrall 0.8.2__py3-none-any.whl → 0.8.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scrall might be problematic. Click here for more details.
- scrall/__init__.py +1 -1
- scrall/__main__.py +1 -0
- scrall/parse/scrall.peg +4 -3
- scrall/parse/visitor.py +11 -2
- {scrall-0.8.2.dist-info → scrall-0.8.3.dist-info}/METADATA +1 -1
- scrall-0.8.3.dist-info/RECORD +14 -0
- scrall-0.8.2.dist-info/RECORD +0 -14
- {scrall-0.8.2.dist-info → scrall-0.8.3.dist-info}/WHEEL +0 -0
- {scrall-0.8.2.dist-info → scrall-0.8.3.dist-info}/entry_points.txt +0 -0
- {scrall-0.8.2.dist-info → scrall-0.8.3.dist-info}/licenses/LICENSE +0 -0
- {scrall-0.8.2.dist-info → scrall-0.8.3.dist-info}/top_level.txt +0 -0
scrall/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.8.
|
|
1
|
+
version = "0.8.3"
|
scrall/__main__.py
CHANGED
scrall/parse/scrall.peg
CHANGED
|
@@ -73,7 +73,7 @@ ASYNCH = '=>'
|
|
|
73
73
|
inst_assignment = flow_output SP+ INST_ASSIGN SP+ instance_set
|
|
74
74
|
INST_ASSIGN = '.=' / '..='
|
|
75
75
|
|
|
76
|
-
// Synchronous call action (method or ee operation)
|
|
76
|
+
// Synchronous call action (method or ee operation or type operation)
|
|
77
77
|
call = instance_set op_chain? // Post-parse verify that last element is an operation, otherwise invalid call
|
|
78
78
|
operation = owner? '.' name supplied_params
|
|
79
79
|
owner = name
|
|
@@ -115,9 +115,10 @@ delete = '!*' SP* instance_set (',' SP+ instance_set)* // supports multi-delete
|
|
|
115
115
|
// Scalar call
|
|
116
116
|
//scalar_call = scalar_expr
|
|
117
117
|
|
|
118
|
-
//
|
|
118
|
+
// Scalar assignment
|
|
119
119
|
scalar_assignment = scalar_output_set SP* SCALAR_ASSIGN SP* scalar_expr projection? (',' SP* scalar_expr projection?)*
|
|
120
|
-
scalar_output_set = flow_output (',' SP+ flow_output)*
|
|
120
|
+
scalar_output_set = qualified_name / flow_output (',' SP+ flow_output)*
|
|
121
|
+
qualified_name = name '.' name
|
|
121
122
|
flow_output = name (TYPE_ASSIGN name)?
|
|
122
123
|
projection = '.' (name / '(' ( (ALL / (name (',' SP+ name)*) )? ')')) // TODO: Why is empty () ok in projection?
|
|
123
124
|
ALL = '*'
|
scrall/parse/visitor.py
CHANGED
|
@@ -41,6 +41,7 @@ BOOL_a = namedtuple('BOOL_a', 'op operands')
|
|
|
41
41
|
Scalar_Assignment_a = namedtuple('Scalar_Assignment_a', 'lhs rhs')
|
|
42
42
|
Table_Assignment_a = namedtuple('Table_Assignment_a', 'type assign_tuple lhs rhs X')
|
|
43
43
|
Scalar_RHS_a = namedtuple('Scalar_RHS_a', 'expr attrs')
|
|
44
|
+
Qualified_Name_a = namedtuple('Qualified_Name_a', 'cname aname')
|
|
44
45
|
Flow_Output_a = namedtuple('Flow_Output_a', 'name exp_type')
|
|
45
46
|
PATH_a = namedtuple('PATH_a', 'hops')
|
|
46
47
|
INST_a = namedtuple('INST_a', 'components')
|
|
@@ -1093,7 +1094,7 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
1093
1094
|
_logger.info(f" > {result}")
|
|
1094
1095
|
return result
|
|
1095
1096
|
|
|
1096
|
-
#
|
|
1097
|
+
# Scalar Assigment
|
|
1097
1098
|
@classmethod
|
|
1098
1099
|
def visit_scalar_assignment(cls, node, children):
|
|
1099
1100
|
"""
|
|
@@ -1110,11 +1111,19 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
1110
1111
|
_logger.info(f" > {result}")
|
|
1111
1112
|
return result
|
|
1112
1113
|
|
|
1114
|
+
@classmethod
|
|
1115
|
+
def visit_qualified_name(cls, node, children):
|
|
1116
|
+
"""
|
|
1117
|
+
"""
|
|
1118
|
+
_logger.info("qualified_name = name '.' name")
|
|
1119
|
+
_logger.info(f' :: {node.value}')
|
|
1120
|
+
return Qualified_Name_a(cname=children[0].name, aname=children[1].name)
|
|
1121
|
+
|
|
1113
1122
|
@classmethod
|
|
1114
1123
|
def visit_scalar_output_set(cls, node, children):
|
|
1115
1124
|
"""
|
|
1116
1125
|
"""
|
|
1117
|
-
_logger.info("scalar_output_set = flow_output (',' flow_output)*")
|
|
1126
|
+
_logger.info("scalar_output_set = qualified_name / flow_output (',' SP+ flow_output)*")
|
|
1118
1127
|
_logger.info(f' :: {node.value}')
|
|
1119
1128
|
|
|
1120
1129
|
_logger.info(f" < {children}")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
scrall/__init__.py,sha256=3xQqmgm1_x3VKzwKdyUiOqUGw60OWRvETUtuN3YWiwY,17
|
|
2
|
+
scrall/__main__.py,sha256=H5szTQUuBTrnCngyUv3EFj5eQyPY4j0NKf1q8DgK6E8,2187
|
|
3
|
+
scrall/exceptions.py,sha256=QU4mKLs7_ddGIznhh2HUpjb_PdPlxWZMMY_g0ELenSs,1764
|
|
4
|
+
scrall/log.conf,sha256=tERYKbCp9TgdAVTby6A7gUpnjurJKcX1tyAzG3ATORI,933
|
|
5
|
+
scrall/parse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
scrall/parse/parser.py,sha256=k4SeWMtNzAUtwU_e15frvSL1D5G3RBU_jmLegZbIBnY,5221
|
|
7
|
+
scrall/parse/scrall.peg,sha256=5sZnsxNcu09eqwOZIH1gAoX3M0rlZAqZKbgCbYcc4Yc,7787
|
|
8
|
+
scrall/parse/visitor.py,sha256=qNgto3fZytyQQHHJ9KE2iqFkQ3ZDmxHzCapKi8z7p3Y,56354
|
|
9
|
+
scrall-0.8.3.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
+
scrall-0.8.3.dist-info/METADATA,sha256=wfJm_30juIvSXwBlFr3cywipBQKs7sZ1yE3AYfdW0to,7208
|
|
11
|
+
scrall-0.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
scrall-0.8.3.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
+
scrall-0.8.3.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
+
scrall-0.8.3.dist-info/RECORD,,
|
scrall-0.8.2.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
scrall/__init__.py,sha256=Q21Bq3gbsUqGg_u-008RR-6e_IdwSouIWV3rtR8UkDY,17
|
|
2
|
-
scrall/__main__.py,sha256=hmDQBhfK3XMAPoAbzO0yVy42eqQkTC0y4hMp6xvc7CI,2174
|
|
3
|
-
scrall/exceptions.py,sha256=QU4mKLs7_ddGIznhh2HUpjb_PdPlxWZMMY_g0ELenSs,1764
|
|
4
|
-
scrall/log.conf,sha256=tERYKbCp9TgdAVTby6A7gUpnjurJKcX1tyAzG3ATORI,933
|
|
5
|
-
scrall/parse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
scrall/parse/parser.py,sha256=k4SeWMtNzAUtwU_e15frvSL1D5G3RBU_jmLegZbIBnY,5221
|
|
7
|
-
scrall/parse/scrall.peg,sha256=Dwuram4HrlwwXJuSYsD2GWcHjnoWNoyhxwcSUVeBNNU,7740
|
|
8
|
-
scrall/parse/visitor.py,sha256=jmwAiwPgZSKGoGqygdegJIawoei9vTOKYf7vg7-9Gdk,56017
|
|
9
|
-
scrall-0.8.2.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
-
scrall-0.8.2.dist-info/METADATA,sha256=4TZ4PU2hN3MxR9nIF4okmxX4hE9cr9UFQxC-jh2v3rQ,7208
|
|
11
|
-
scrall-0.8.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
-
scrall-0.8.2.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
-
scrall-0.8.2.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
-
scrall-0.8.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|