This commit is contained in:
2026-03-24 21:19:03 +03:00
parent d039fa0cb9
commit a80b8d9acf
8 changed files with 150 additions and 5 deletions

View File

@@ -105,6 +105,7 @@
(define (c-op< x y) (< (c-op-precedence x) (c-op-precedence y)))
(define (c-op<= x y) (<= (c-op-precedence x) (c-op-precedence y)))
(define (c-op>= x y) (>= (c-op-precedence x) (c-op-precedence y)))
(define (c-paren x) (cat "(" (c-expr x) ")"))
@@ -112,7 +113,7 @@
(lambda (st)
((fmt-let 'op op
(if (and (c-op<= (fmt-op st) op)
(not (vector? st)))
(not (vector? x)))
(c-paren x)
x))
st)))