From b606bf4692a97d19593741fe8ebabc90892e6d19 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Thu, 30 Jul 2026 11:19:06 +0100 Subject: [PATCH] fix labels --- packages/mondo/mondo.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/mondo/mondo.mjs b/packages/mondo/mondo.mjs index b87a8b588..0255ef78f 100644 --- a/packages/mondo/mondo.mjs +++ b/packages/mondo/mondo.mjs @@ -24,9 +24,15 @@ export class MondoParser { op: /^[*/:!@%?+\-&]|^\.{2}/, // * / : ! @ % ? .. // dollar: /^\$/, pipe: /^#/, - stack: /^[,$]/, + // Matches _$ or _$BASS + mute: /^_\$([a-zA-Z0-9_]+)?/, + // Matches S$ or S$VOCALS + solo: /^S\$([a-zA-Z0-9_]+)?/, + // stack: /^[,$]/, + stack: /^,|^\$([a-zA-Z0-9_]+)?/, or: /^[|]/, plain: /^[a-zA-Z0-9-~_^#]+/, + }; op_precedence = [['*', '/', ':', '!', '@', '%', '?', '+', '-', '..'], ['&']]; // matches next token @@ -62,6 +68,7 @@ export class MondoParser { offset += token.value.length; tokens.push(token); } + console.info("TOKENS", tokens[0], tokens[1]) return tokens; } // take code, return abstract syntax tree @@ -269,9 +276,11 @@ export class MondoParser { children = this.desugar_ops(children, ops); }); children = this.desugar_pipes(children); + console.info("STACK CHILDREN", children) return children; }), ); + console.info("CHILDREN", children) return children; } parse_list() {