diff --git a/implementations/Nim/joy.nim b/implementations/Nim/joy.nim index 5e5ee98..16b5b91 100644 --- a/implementations/Nim/joy.nim +++ b/implementations/Nim/joy.nim @@ -270,6 +270,8 @@ proc text_to_expression(text: string): JoyListType = thing = j_true elif tok == "false": thing = j_false + elif tok == "-": # see https://github.com/nim-lang/bigints/issues/116 + thing = JoyType(kind: joySymbol, symVal: tok) else: try: thing = JoyType(kind: joyInt, intVal: tok.initBigInt)