again tokenize simplifications

This commit is contained in:
Dave Halter
2014-04-28 19:31:41 +02:00
parent 18dc92f85f
commit 5740c45791
2 changed files with 1 additions and 4 deletions

View File

@@ -107,10 +107,6 @@ def group(*choices):
return '(' + '|'.join(choices) + ')'
def any(*choices):
return group(*choices) + '*'
def maybe(*choices):
return group(*choices) + '?'

View File

@@ -44,6 +44,7 @@ class _StrangeSlice():
def __getitem__(self, slice):
return slice
# Should not result in an error, just because the slice itself is returned.
#? []
_StrangeSlice()[1:2]