(minor) Changed priority of numbers... Yeah uh

This commit is contained in:
KikooDX 2020-06-09 10:36:34 +02:00
parent a0ce80ee73
commit 36258693a5
1 changed files with 1 additions and 1 deletions

View File

@ -79,8 +79,8 @@ t_ignore_COMMENT = r'//.*'
# A regex rule with some action code
def t_NUMBER(t):
r'[+-]*[(0-9).]+\b'
t.value = t.value.replace("--", "")
t.value = t.value.replace("+", "")
t.value = t.value.replace("--", "")
t.value = float(t.value)
return t