about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2025-01-11 21:54:40 -0500
committerelioat <elioat@tilde.institute>2025-01-11 21:54:40 -0500
commit3bbd8bafaae0830b541324e4268af317024c6f29 (patch)
tree196fb7c835c1519796a0b4fd7efc2169d42bb9fd
parent4825666a8086801df1577e0e54b5f85f7b6cf175 (diff)
downloadtour-3bbd8bafaae0830b541324e4268af317024c6f29.tar.gz
*
-rwxr-xr-xawk/forth/f.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/awk/forth/f.awk b/awk/forth/f.awk
index cf50dcf..6c18bfc 100755
--- a/awk/forth/f.awk
+++ b/awk/forth/f.awk
@@ -51,6 +51,9 @@ function repl() {
 }
 
 function interpret(line) {
+    # Remove comments from the line
+    gsub(/\(.*\)/, "", line)  # Remove everything from ( to )
+    
     n = split(line, words, /[ \t]+/)
     
     for (i = 1; i <= n; i++) {