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 CHANGED
@@ -1 +1 @@
1
- version = "0.8.0"
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
- card = children.results.get('CARD')[0]
930
- attr = children.results.get('name')
931
- rankr = children.results.get('RANKR')
932
- rankr_parse = rank_symbol[rankr[0]]
933
- result = Rank_Selection_a(card=card, rankr=rankr_parse, attr=attr)
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
- card = '*' if not explicit_card else explicit_card[0]
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.8.0
3
+ Version: 0.8.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
@@ -1,14 +1,14 @@
1
- scrall/__init__.py,sha256=Xa5Ugzgk02aJpYFNzZussKTPoB7_TI6yxPt6r3mRqRM,17
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=gcecbvpBDsa6scbQv21rJZdsDrwOC83yKR3wtyNhiKs,55393
9
- scrall-0.8.0.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
10
- scrall-0.8.0.dist-info/METADATA,sha256=OKiv09J24672gTi7KKxflBiJ72dcm8YmDH0ydXfqid4,7208
11
- scrall-0.8.0.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
12
- scrall-0.8.0.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
13
- scrall-0.8.0.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
14
- scrall-0.8.0.dist-info/RECORD,,
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