scrall 0.11.0__py3-none-any.whl → 0.12.1__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.
- scrall/__init__.py +1 -1
- scrall/parse/scrall.peg +1 -1
- scrall/parse/visitor.py +4 -3
- {scrall-0.11.0.dist-info → scrall-0.12.1.dist-info}/METADATA +1 -1
- scrall-0.12.1.dist-info/RECORD +14 -0
- scrall-0.11.0.dist-info/RECORD +0 -14
- {scrall-0.11.0.dist-info → scrall-0.12.1.dist-info}/WHEEL +0 -0
- {scrall-0.11.0.dist-info → scrall-0.12.1.dist-info}/entry_points.txt +0 -0
- {scrall-0.11.0.dist-info → scrall-0.12.1.dist-info}/licenses/LICENSE +0 -0
- {scrall-0.11.0.dist-info → scrall-0.12.1.dist-info}/top_level.txt +0 -0
scrall/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.
|
|
1
|
+
version = "0.12.1"
|
scrall/parse/scrall.peg
CHANGED
|
@@ -52,7 +52,7 @@ FALSE_RESULT_OP = ':'
|
|
|
52
52
|
switch = switch_input DECISION_OP SP* case_block // Boolean expr triggers case_block
|
|
53
53
|
switch_input = rnum / scalar_expr
|
|
54
54
|
case_block = '{' LINEWRAP* case+ LINEWRAP*'}'
|
|
55
|
-
case = LINEWRAP* trigger_set? ':' LINEWRAP* component_statement_set
|
|
55
|
+
case = LINEWRAP* trigger_set? ':' (SP+ / LINEWRAP*) component_statement_set
|
|
56
56
|
trigger_set = enum_value (',' SP+ enum_value)* SP*
|
|
57
57
|
enum_value = '_' name // Scalar switch has enum value cases
|
|
58
58
|
DECISION_OP = '?'
|
scrall/parse/visitor.py
CHANGED
|
@@ -46,7 +46,7 @@ Qualified_Name_a = namedtuple('Qualified_Name_a', 'iset cname aname')
|
|
|
46
46
|
Flow_Output_a = namedtuple('Flow_Output_a', 'name exp_type')
|
|
47
47
|
PATH_a = namedtuple('PATH_a', 'hops')
|
|
48
48
|
INST_a = namedtuple('INST_a', 'components')
|
|
49
|
-
INST_PROJ_a = namedtuple('INST_PROJ_a', 'iset projection')
|
|
49
|
+
INST_PROJ_a = namedtuple('INST_PROJ_a', 'iset projection op_chain')
|
|
50
50
|
TEXPR_a = namedtuple('TEXPR_a', 'table hexpr selection projection')
|
|
51
51
|
R_a = namedtuple('R_a', 'rnum')
|
|
52
52
|
IN_a = namedtuple('IN_a', 'name')
|
|
@@ -1455,10 +1455,11 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
1455
1455
|
iset = children.results.get('instance_set')
|
|
1456
1456
|
if iset:
|
|
1457
1457
|
p = children.results.get('projection')
|
|
1458
|
-
|
|
1458
|
+
o = children.results.get('op_chain')
|
|
1459
|
+
op_chain = None if not o else o[0]
|
|
1460
|
+
result = INST_PROJ_a(iset=iset[0], projection=None if not p else p[0], op_chain=op_chain)
|
|
1459
1461
|
_logger.info(f" > {result}")
|
|
1460
1462
|
return result
|
|
1461
|
-
# TODO: include opchain if supplied
|
|
1462
1463
|
|
|
1463
1464
|
result = children[:]
|
|
1464
1465
|
_logger.info(f" > {result}")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
scrall/__init__.py,sha256=46AO7FUUt7ALSxbUOIm_4PrXWE0XYSOLT3oJtb3rBAY,18
|
|
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=s0eRBLkqmxx5c5kgVfS9o6hGORdnmcCQ4t11xPWNEo8,7912
|
|
8
|
+
scrall/parse/visitor.py,sha256=Tn_WCFw9_aS3slJXWhWouYuC4EekeXruHx9kUpr81_E,58591
|
|
9
|
+
scrall-0.12.1.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
+
scrall-0.12.1.dist-info/METADATA,sha256=mT-SUQuQoTcRYtUbWc1D8xNnMkoHFIR25T8Z6SmMc4k,7209
|
|
11
|
+
scrall-0.12.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
scrall-0.12.1.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
+
scrall-0.12.1.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
+
scrall-0.12.1.dist-info/RECORD,,
|
scrall-0.11.0.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
scrall/__init__.py,sha256=Zlq30UhOiC7zQJvZcBhTgE3ZcYH1hpT6kjFn1fJiOL4,18
|
|
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=KT2jTK1wTYn6afcXXaKvFgghtbwzQ7wntNPA3cGwSPY,7904
|
|
8
|
-
scrall/parse/visitor.py,sha256=wC9qIADxep_24NM90eFyMvCmKLUoitdfqff7HHNjDvM,58515
|
|
9
|
-
scrall-0.11.0.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
-
scrall-0.11.0.dist-info/METADATA,sha256=YctIFwtG6wxzB94LUPNoYmgNpXHc1RbOyi3pW-N_2IA,7209
|
|
11
|
-
scrall-0.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
-
scrall-0.11.0.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
-
scrall-0.11.0.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
-
scrall-0.11.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|