[Joypy-announce] joypy/Joypy: Recognize scientific notation.

Back to archive index
scmno****@osdn***** scmno****@osdn*****
Mon May 18 08:11:14 JST 2020


changeset 91d5c977b857 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=91d5c977b857
user: Simon Forman <sform****@hushm*****>
date: Sun May 17 16:10:56 2020 -0700
description: Recognize scientific notation.

diffstat:

 joy/parser.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r fbcfdc819791 -r 91d5c977b857 joy/parser.py
--- a/joy/parser.py	Sun May 17 16:02:43 2020 -0700
+++ b/joy/parser.py	Sun May 17 16:10:56 2020 -0700
@@ -41,7 +41,7 @@
 
 
 #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'\[|\]'


More information about the Joypy-announce mailing list
Back to archive index