From 41f5a297f9b78ebffddefd001cafba3aa80f4e73 Mon Sep 17 00:00:00 2001 From: Maurits van Riezen Date: Fri, 12 Apr 2024 09:26:19 +0200 Subject: [PATCH] flip lt/gt --- src/scripts/interpreter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/interpreter.ts b/src/scripts/interpreter.ts index 2fa377f..235f2ec 100644 --- a/src/scripts/interpreter.ts +++ b/src/scripts/interpreter.ts @@ -131,8 +131,8 @@ const commands: {[k: string]: (o: ProgramState) => void} = { ',': wrap((a, b, number_implementation) => number_implementation.div(a, b)), '%': wrap((a, b, number_implementation) => number_implementation.mod(a, b)), '=': wrap((a, b, number_implementation) => number_implementation.eq(a, b)), - ')': wrap((a, b, number_implementation) => number_implementation.lt(a, b)), - '(': wrap((a, b, number_implementation) => number_implementation.gt(a, b)), + ')': wrap((a, b, number_implementation) => number_implementation.gt(a, b)), + '(': wrap((a, b, number_implementation) => number_implementation.lt(a, b)), '\'': (o) => { o.string_parsing_mode = o.number_implementation.fromChar('\''); },