You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow "n" as upper bound of repeatability (prevent parser crashes but don't do anything with the value yet) (#572)
* feat: allow `n` as upper bound of repeatability
#571
* wip
* isort
* python 3.9
* too many returns
and no added value
* mypy
* black
* Update src/ahbicht/models/mapping_results.py
Co-authored-by: Leon Haffmans <[email protected]>
* import
---------
Co-authored-by: Konstantin <[email protected]>
Co-authored-by: Leon Haffmans <[email protected]>
| expression "∨" expression -> or_composition // the logical or
25
-
| expression "V"i expression -> or_composition // a 'v' for those who first chose to introduce logical symbols but now can't find them on their keyboard
25
+
| expression "V"i expression -> or_composition // a 'v' for those who first chose to introduce logical symbols like ∨ but now can't find them on their keyboard
26
26
| expression "X"i expression -> xor_composition
27
27
| expression "⊻" expression -> xor_composition
28
28
| expression "U"i expression -> and_composition
@@ -38,7 +38,7 @@
38
38
condition: "[" CONDITION_KEY "]" // a rule for condition keys
39
39
TIME_CONDITION_KEY: /UB(1|2|3)/ // a terminal for "übergreifende Bedingungen für Zeitpunktangaben"
40
40
CONDITION_KEY: INT // a TERMINAL for all the remaining ints (lower priority)
41
-
REPEATABILITY: /\d+\.{2}[1-9]\d*/ // a terminal for repetitions n..m with n>=0 and m>n
41
+
REPEATABILITY: /\d+\.{2}(?:([1-9]\d*)|n)/ // a terminal for repetitions n..m with n>=0 and m>n or m=="n"
42
42
PACKAGE_KEY: INT "P" // a TERMINAL for all INTs followed by "P" (high priority)
0 commit comments