diff options
author | elioat <elioat@tilde.institute> | 2025-01-11 21:54:40 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-01-11 21:54:40 -0500 |
commit | 3bbd8bafaae0830b541324e4268af317024c6f29 (patch) | |
tree | 196fb7c835c1519796a0b4fd7efc2169d42bb9fd | |
parent | 4825666a8086801df1577e0e54b5f85f7b6cf175 (diff) | |
download | tour-3bbd8bafaae0830b541324e4268af317024c6f29.tar.gz |
*
-rwxr-xr-x | awk/forth/f.awk | 3 |
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++) { |