OSDN Git Service
(root)
/
joypy
/
Thun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb42220
)
Zero-or-one not one-or-more.
author
Simon Forman
<sforman@hushmail.com>
Tue, 19 May 2020 03:45:04 +0000
(20:45 -0700)
committer
Simon Forman
<sforman@hushmail.com>
Tue, 19 May 2020 03:45:04 +0000
(20:45 -0700)
joy/parser.py
patch
|
blob
|
history
diff --git
a/joy/parser.py
b/joy/parser.py
index
6d3a379
..
de8a873
100644
(file)
--- a/
joy/parser.py
+++ b/
joy/parser.py
@@
-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'\[|\]'