From bffc031ea83c7176aac3d3828de0060c6630140c Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 6 Jan 2026 19:02:29 +0100 Subject: fix: correct and simplify parsing of expressions. The expressions were parsed from right to left, and it was incorrect and cumbersome. Now they are processed from left to right, with a simpler and correct handling of precedence rules. The vm function call syntax has been changed to set the function before the input arguments on the stack, as to follow the declaring order in languages. --- lang/token.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/token.go') diff --git a/lang/token.go b/lang/token.go index 41c8439..4f5da35 100644 --- a/lang/token.go +++ b/lang/token.go @@ -120,6 +120,9 @@ const ( JumpSetTrue Label New + + // This must be the last token value. + MaxTok ) // UnaryOp contains the set of unary operators. -- cgit v1.2.3