scrall 0.9.4__py3-none-any.whl → 0.10.0__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/parse/scrall.peg +2 -2
- scrall/parse/visitor.py +7 -2
- {scrall-0.9.4.dist-info → scrall-0.10.0.dist-info}/METADATA +1 -1
- scrall-0.10.0.dist-info/RECORD +14 -0
- scrall-0.9.4.dist-info/RECORD +0 -14
- {scrall-0.9.4.dist-info → scrall-0.10.0.dist-info}/WHEEL +0 -0
- {scrall-0.9.4.dist-info → scrall-0.10.0.dist-info}/entry_points.txt +0 -0
- {scrall-0.9.4.dist-info → scrall-0.10.0.dist-info}/licenses/LICENSE +0 -0
- {scrall-0.9.4.dist-info → scrall-0.10.0.dist-info}/top_level.txt +0 -0
scrall/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.
|
|
1
|
+
version = "0.10.0"
|
scrall/parse/scrall.peg
CHANGED
|
@@ -74,9 +74,9 @@ inst_assignment = flow_output SP+ INST_ASSIGN SP+ instance_set
|
|
|
74
74
|
INST_ASSIGN = '.=' / '..='
|
|
75
75
|
|
|
76
76
|
// Synchronous call action (method or ee operation or type operation)
|
|
77
|
-
call =
|
|
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
|
-
owner = name
|
|
79
|
+
owner = '~' / name
|
|
80
80
|
supplied_params = '(' SP* (param (',' SP+ param)*)? SP* ')'
|
|
81
81
|
param = (name SP* ':' SP*)? scalar_expr // Comma above keeps scalar_expr from grabbing next param
|
|
82
82
|
|
scrall/parse/visitor.py
CHANGED
|
@@ -832,7 +832,7 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
832
832
|
owner = children.results.get('owner')
|
|
833
833
|
p = children.results.get('supplied_params')
|
|
834
834
|
result = Op_a(
|
|
835
|
-
owner='
|
|
835
|
+
owner='_implicit' if not owner else owner[0],
|
|
836
836
|
op_name=children.results['name'][0].name,
|
|
837
837
|
supplied_params=[] if not p else p[0]
|
|
838
838
|
)
|
|
@@ -841,7 +841,12 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
841
841
|
|
|
842
842
|
@classmethod
|
|
843
843
|
def visit_owner(cls, node, children):
|
|
844
|
-
|
|
844
|
+
"""
|
|
845
|
+
'~' / name
|
|
846
|
+
"""
|
|
847
|
+
name = children.results.get('name')
|
|
848
|
+
# This is either ~ signifying an external service or a single instance flow (instance set)
|
|
849
|
+
result = name[0].name if name else '_external'
|
|
845
850
|
return result
|
|
846
851
|
|
|
847
852
|
@classmethod
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
scrall/__init__.py,sha256=5J3gAl0dpgRaHiwx6Notssoxh6Q25dQPNlaGoI4QtzM,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=0vVYqFdDM_nbrc55IB4o1dfJQpQaIcv7hr8wHsi9C6I,7847
|
|
8
|
+
scrall/parse/visitor.py,sha256=1gOMCIltGjgW3JH-Uw_vV2qeQQlfgVGHpX7bG3eOI3s,57646
|
|
9
|
+
scrall-0.10.0.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
+
scrall-0.10.0.dist-info/METADATA,sha256=Rsf1YzWsUK65yOXZBVM8oy53c-in7GatHGv1yu1guIA,7209
|
|
11
|
+
scrall-0.10.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
scrall-0.10.0.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
+
scrall-0.10.0.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
+
scrall-0.10.0.dist-info/RECORD,,
|
scrall-0.9.4.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
scrall/__init__.py,sha256=YRu5YIisR0uOx2dm0XZ4Wy0wzV_0bDGjIWFNyF8Q2Fg,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=nVm5MYrYz5F-KXdyCPpqP8avy7LovPvv7e8JMP_5MBI,7849
|
|
8
|
-
scrall/parse/visitor.py,sha256=799D58lXJpFSkBDp8xJwrlIOlL6Hm6N0fB0EqLszTqQ,57439
|
|
9
|
-
scrall-0.9.4.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
-
scrall-0.9.4.dist-info/METADATA,sha256=PiEq8JeWJSBD9rCsCnoH7Y48ZinakdmqU3nnsHuCgQ8,7208
|
|
11
|
-
scrall-0.9.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
-
scrall-0.9.4.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
-
scrall-0.9.4.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
-
scrall-0.9.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|