From 820f716dd16008eef386f6541fa76dcbac793a9b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 15 Oct 2024 01:46:52 +0300 Subject: improved support for braces within loops: warn about unclosed braces and allow breaking from within braces For instance, you can now write <23(1;)> without leaving anything on the stack. --- src/parser.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 3bf9050..29b96b6 100644 --- a/src/parser.h +++ b/src/parser.h @@ -36,7 +36,9 @@ typedef struct { /** how many iterations are left */ teco_int_t counter; /** Program counter of loop start command */ - gsize pc : sizeof(gsize)*8 - 1; + gsize pc; + /** Brace level at loop start */ + guint brace_level : sizeof(guint)*8 - 1; /** * Whether the loop represents an argument * barrier or not (it "passes through" -- cgit v1.2.3