scrall 0.6.0__py3-none-any.whl → 0.6.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.
Potentially problematic release.
This version of scrall might be problematic. Click here for more details.
- scrall/__init__.py +1 -1
- scrall/__main__.py +4 -1
- scrall/parse/scrall.peg +1 -1
- scrall/parse/visitor.py +4 -3
- {scrall-0.6.0.dist-info → scrall-0.6.1.dist-info}/METADATA +8 -7
- scrall-0.6.1.dist-info/RECORD +14 -0
- {scrall-0.6.0.dist-info → scrall-0.6.1.dist-info}/WHEEL +1 -1
- scrall-0.6.0.dist-info/RECORD +0 -14
- {scrall-0.6.0.dist-info → scrall-0.6.1.dist-info}/entry_points.txt +0 -0
- {scrall-0.6.0.dist-info → scrall-0.6.1.dist-info/licenses}/LICENSE +0 -0
- {scrall-0.6.0.dist-info → scrall-0.6.1.dist-info}/top_level.txt +0 -0
scrall/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.6.
|
|
1
|
+
version = "0.6.1"
|
scrall/__main__.py
CHANGED
|
@@ -4,11 +4,14 @@ __main__.py
|
|
|
4
4
|
Scrall Parser
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
# System
|
|
7
8
|
import logging
|
|
8
9
|
import logging.config
|
|
9
10
|
import sys
|
|
10
11
|
import argparse
|
|
11
12
|
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
# Scrall
|
|
12
15
|
from scrall import version
|
|
13
16
|
from scrall.parse.parser import ScrallParser
|
|
14
17
|
|
|
@@ -66,7 +69,7 @@ def main():
|
|
|
66
69
|
d = args.debug
|
|
67
70
|
result = ScrallParser.parse_file(file_input=fpath, debug=d)
|
|
68
71
|
|
|
69
|
-
logger.info("No problemo") # We didn't die on an exception, basically
|
|
72
|
+
# logger.info("No problemo") # We didn't die on an exception, basically
|
|
70
73
|
print("\nNo problemo")
|
|
71
74
|
|
|
72
75
|
|
scrall/parse/scrall.peg
CHANGED
|
@@ -109,7 +109,7 @@ attr_init = '(' SP* (attr_value_init (',' SP+ attr_value_init)* SP*)? ')' // all
|
|
|
109
109
|
attr_value_init = (name SP? ':' SP+ scalar_expr )*
|
|
110
110
|
update_ref = (instance_set SP+)? to_ref // relate or unrelated to me or explicit instance_set
|
|
111
111
|
to_ref = '&' rnum SP+ instance_set (',' SP+ instance_set)? // non-associative or associative reference
|
|
112
|
-
delete = '!*' SP* instance_set
|
|
112
|
+
delete = '!*' SP* instance_set (',' SP+ instance_set) // supports multi-delete transaction
|
|
113
113
|
|
|
114
114
|
// Scalar call
|
|
115
115
|
//scalar_call = scalar_expr
|
scrall/parse/visitor.py
CHANGED
|
@@ -29,7 +29,7 @@ Execution_Unit_a = namedtuple('Execution_Unit_a', 'statement_set output_token')
|
|
|
29
29
|
Seq_Statement_Set_a = namedtuple('Seq_Statement_Set_a', 'input_tokens statement block')
|
|
30
30
|
Comp_Statement_Set_a = namedtuple('Comp_Statement_Set_a', 'statement block')
|
|
31
31
|
Decision_a = namedtuple('Decision_a', 'input true_result false_result')
|
|
32
|
-
Delete_Action_a = namedtuple('Delete_Action_a', '
|
|
32
|
+
Delete_Action_a = namedtuple('Delete_Action_a', 'instance_sets')
|
|
33
33
|
Case_a = namedtuple('Case_a', 'enums comp_statement_set')
|
|
34
34
|
Switch_a = namedtuple('Switch_a', 'input_flow cases')
|
|
35
35
|
MATH_a = namedtuple('MATH_a', 'op operands')
|
|
@@ -1045,13 +1045,14 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
1045
1045
|
@classmethod
|
|
1046
1046
|
def visit_delete(cls, node, children):
|
|
1047
1047
|
"""
|
|
1048
|
+
'!*' SP* instance_set (',' SP+ instance_set)
|
|
1048
1049
|
"""
|
|
1049
|
-
_logger.info("delete = '!*' instance_set")
|
|
1050
|
+
_logger.info("delete = '!*' SP* instance_set (',' SP+ instance_set)")
|
|
1050
1051
|
_logger.info(f' :: {node.value}')
|
|
1051
1052
|
|
|
1052
1053
|
_logger.info(f" < {children}")
|
|
1053
1054
|
iset = children.results.get('instance_set')
|
|
1054
|
-
result = Delete_Action_a(
|
|
1055
|
+
result = Delete_Action_a(instance_sets=iset)
|
|
1055
1056
|
_logger.info(f" > {result}")
|
|
1056
1057
|
return result
|
|
1057
1058
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: scrall
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Starr's Concise Relational Action Language - For Shlaer-Mellor Executable UML
|
|
5
5
|
Author-email: Leon Starr <leon_starr@modelint.com>
|
|
6
6
|
License: MIT License
|
|
@@ -35,13 +35,14 @@ Requires-Python: >=3.10
|
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
36
36
|
License-File: LICENSE
|
|
37
37
|
Requires-Dist: Arpeggio
|
|
38
|
-
Requires-Dist: tomli
|
|
38
|
+
Requires-Dist: tomli; python_version < "3.11"
|
|
39
39
|
Provides-Extra: build
|
|
40
|
-
Requires-Dist: build
|
|
41
|
-
Requires-Dist: twine
|
|
40
|
+
Requires-Dist: build; extra == "build"
|
|
41
|
+
Requires-Dist: twine; extra == "build"
|
|
42
42
|
Provides-Extra: dev
|
|
43
|
-
Requires-Dist: bump2version
|
|
44
|
-
Requires-Dist: pytest
|
|
43
|
+
Requires-Dist: bump2version; extra == "dev"
|
|
44
|
+
Requires-Dist: pytest; extra == "dev"
|
|
45
|
+
Dynamic: license-file
|
|
45
46
|
|
|
46
47
|
# Scrall Action Language
|
|
47
48
|
Scrall = Starr's Concise Relational Action Language
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
scrall/__init__.py,sha256=alLEMEr4ac6GYMcaCSbGl0sZCPgwmYRlRBjrToos_uI,17
|
|
2
|
+
scrall/__main__.py,sha256=hyBcYLATx0XghUUnrKQQgDQ8PicczmBnXgBAx92ltB4,2161
|
|
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=5JqwBAta8O7AR6ORBb9ZewTX_wohpF7vgY8yNqLEhuE,7640
|
|
8
|
+
scrall/parse/visitor.py,sha256=gtEJpGG9JYTg4EwQ-S8He_09vYbmD1PerrpArfFWHTg,55437
|
|
9
|
+
scrall-0.6.1.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
+
scrall-0.6.1.dist-info/METADATA,sha256=tjo8UlsS2Fi8cyIHQMHvEAxiknXosarToCU_50Tu9wI,7208
|
|
11
|
+
scrall-0.6.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
12
|
+
scrall-0.6.1.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
+
scrall-0.6.1.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
+
scrall-0.6.1.dist-info/RECORD,,
|
scrall-0.6.0.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
scrall/__init__.py,sha256=e0X1-TNwwrfq8ROjDkPhu1Wka4IVHQeCjaR51tzPsko,17
|
|
2
|
-
scrall/__main__.py,sha256=5k_6-Z-BPbW2J1AJ98TWDpKu7r9Hcl7dIukqfEp5E38,2140
|
|
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=GBsDnuUm4vV8gNePaxd83SceLE6kKWKuvBWtBnOkrM0,7580
|
|
8
|
-
scrall/parse/visitor.py,sha256=hiX94kR65Jkf8lwV4HY2SbsXnP0wuTpSeNO5DZMbfIw,55355
|
|
9
|
-
scrall-0.6.0.dist-info/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
-
scrall-0.6.0.dist-info/METADATA,sha256=uGpFNtYkoN9GXFWSiINp3-6TNC3IQR5c_SOQkEmUbeo,7191
|
|
11
|
-
scrall-0.6.0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
|
12
|
-
scrall-0.6.0.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
-
scrall-0.6.0.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
-
scrall-0.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|