Zero-or-one not one-or-more.
This commit is contained in:
parent
eb42220b69
commit
605891d6d8
|
|
@ -41,7 +41,7 @@ from .utils.stack import list_to_stack
|
|||
|
||||
|
||||
#TODO: explain the details of float lits and strings.
|
||||
FLOAT = r'-?\d+\.\d*(e(-|\+)\d+)+'
|
||||
FLOAT = r'-?\d+\.\d*(e(-|\+)\d+)?'
|
||||
INT = r'-?\d+'
|
||||
SYMBOL = r'[•\w!@$%^&*()_+<>?|\/;:`~,.=-]+'
|
||||
BRACKETS = r'\[|\]'
|
||||
|
|
|
|||
Loading…
Reference in New Issue