Skip to content

Commit d6e99bc

Browse files
author
Dan Weatherill
committed
add -ve numbers to Number parsing, and fixes constants generation. DOES NOT WORK, silently fails to emit code when using constants in a SET statement
1 parent 2ad6496 commit d6e99bc

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

wdl/Symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
IDENTIFIER_STARTCHARS = string.ascii_letters
109109
IDENTIFIER_CHARS = string.ascii_letters + string.digits + "_"
110110

111-
NUMBER_STARTCHARS = string.digits
111+
NUMBER_STARTCHARS = string.digits + '-'
112112
NUMBER_CHARS = string.digits + "."
113113

114114
STRING_STARTCHARS = "'" + '"'

wdl/wdlParser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,6 @@ def nbias(slot_number):
15791579
consume(",")
15801580

15811581
# must be a negative number...
1582-
consume("-")
15831582
if found(NUMBER):
15841583
cmd = token.cargo
15851584
consume(NUMBER)

0 commit comments

Comments
 (0)