scrall 0.8.0__py3-none-any.whl → 0.8.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/parse/visitor.py +10 -6
- {scrall-0.8.0.dist-info → scrall-0.8.1.dist-info}/METADATA +1 -1
- {scrall-0.8.0.dist-info → scrall-0.8.1.dist-info}/RECORD +8 -8
- {scrall-0.8.0.dist-info → scrall-0.8.1.dist-info}/WHEEL +0 -0
- {scrall-0.8.0.dist-info → scrall-0.8.1.dist-info}/entry_points.txt +0 -0
- {scrall-0.8.0.dist-info → scrall-0.8.1.dist-info}/licenses/LICENSE +0 -0
- {scrall-0.8.0.dist-info → scrall-0.8.1.dist-info}/top_level.txt +0 -0
scrall/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.8.
|
|
1
|
+
version = "0.8.1"
|
scrall/parse/visitor.py
CHANGED
|
@@ -74,6 +74,7 @@ Rank_a = namedtuple('Rank_a', "card extent")
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
rank_symbol = {'^+': "greatest", '^-': "least"}
|
|
77
|
+
card_symbol = {'1':'ONE', '*':'ALL'}
|
|
77
78
|
|
|
78
79
|
table_op = {
|
|
79
80
|
'^': 'INTERSECT',
|
|
@@ -926,11 +927,13 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
926
927
|
_logger.info(f' :: {node.value}')
|
|
927
928
|
|
|
928
929
|
_logger.info(f" < {children}")
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
930
|
+
card_parse = children.results['CARD'][0]
|
|
931
|
+
card = card_symbol[card_parse]
|
|
932
|
+
attr_parse = children.results['name'][0]
|
|
933
|
+
attr = attr_parse.name
|
|
934
|
+
rankr_parse = children.results['RANKR']
|
|
935
|
+
rankr = rank_symbol[rankr_parse[0]]
|
|
936
|
+
result = Rank_Selection_a(card=card, rankr=rankr, attr=attr)
|
|
934
937
|
_logger.info(f" > {result}")
|
|
935
938
|
return result
|
|
936
939
|
|
|
@@ -945,7 +948,8 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
945
948
|
|
|
946
949
|
_logger.info(f" < {children}")
|
|
947
950
|
explicit_card = children.results.get('CARD')
|
|
948
|
-
|
|
951
|
+
card_parse = '*' if not explicit_card else explicit_card[0]
|
|
952
|
+
card = card_symbol[card_parse]
|
|
949
953
|
criteria = children.results.get('scalar_expr')
|
|
950
954
|
if criteria:
|
|
951
955
|
result = Criteria_Selection_a(card=card, criteria=criteria[0])
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
scrall/__init__.py,sha256=
|
|
1
|
+
scrall/__init__.py,sha256=F8yK0zpmobQYrGifLZrnTOgdche7N90s0ylEBIq-eyI,17
|
|
2
2
|
scrall/__main__.py,sha256=hyBcYLATx0XghUUnrKQQgDQ8PicczmBnXgBAx92ltB4,2161
|
|
3
3
|
scrall/exceptions.py,sha256=QU4mKLs7_ddGIznhh2HUpjb_PdPlxWZMMY_g0ELenSs,1764
|
|
4
4
|
scrall/log.conf,sha256=tERYKbCp9TgdAVTby6A7gUpnjurJKcX1tyAzG3ATORI,933
|
|
5
5
|
scrall/parse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
scrall/parse/parser.py,sha256=k4SeWMtNzAUtwU_e15frvSL1D5G3RBU_jmLegZbIBnY,5221
|
|
7
7
|
scrall/parse/scrall.peg,sha256=5qaAjASvWVsOjKxXnEh63OrEnNOL9QXdxfME0dwcvgM,7672
|
|
8
|
-
scrall/parse/visitor.py,sha256=
|
|
9
|
-
scrall-0.8.
|
|
10
|
-
scrall-0.8.
|
|
11
|
-
scrall-0.8.
|
|
12
|
-
scrall-0.8.
|
|
13
|
-
scrall-0.8.
|
|
14
|
-
scrall-0.8.
|
|
8
|
+
scrall/parse/visitor.py,sha256=hlcabsgc3K5qxntye2tbrDr4BfFeJJSoIDHSe4Nq0rg,55548
|
|
9
|
+
scrall-0.8.1.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
|
|
10
|
+
scrall-0.8.1.dist-info/METADATA,sha256=o_8sWBElYyBIfdRPBqFXjWkj-tODulvYA5eWTng0aTw,7208
|
|
11
|
+
scrall-0.8.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
12
|
+
scrall-0.8.1.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
|
|
13
|
+
scrall-0.8.1.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
|
|
14
|
+
scrall-0.8.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|