Recognize scientific notation.

This commit is contained in:
Simon Forman 2020-05-17 16:10:56 -07:00
parent 2c75a0d858
commit ef6411205d
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ from .utils.stack import list_to_stack
#TODO: explain the details of float lits and strings.
FLOAT = r'-?\d+\.\d*'
FLOAT = r'-?\d+\.\d*(e(-|\+)\d+)+'
INT = r'-?\d+'
SYMBOL = r'[•\w!@$%^&*()_+<>?|\/;:`~,.=-]+'
BRACKETS = r'\[|\]'