-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using archimetric operators in print, strings are ignored #54
Comments
Oh nice, thanks! This looks like an operator precedence issue. In Awk, I'll take a look. |
Another error I just encountered (division seen as part of a regex): ❯ frawk 'BEGIN { t_array[0] = 5; t = 6; print "test/test\t" (t_array[0] + t); }'
test/test 11
❯ frawk 'BEGIN { t_array[0] = 5; t = 6; print "test/test\t" (t_array[0] * t); }'
test/test 30
❯ frawk 'BEGIN { t_array[0] = 5; t = 6; print "test/test\t" (t_array[0] / t); }'
line 1, column 65. incomplete regex literal In the original script if gave a different error:
|
This fixes one of the examples brought up in #54
Quick update here, I should have a fix for the division issue soon, but I think I'll have to do a larger rewrite of the parser to fix the first concatenation issue. At the very least, it's not a quick fix. I'll be sure fix #49 as well when I get around to that. |
This fixes one of the examples brought up in #54
When using archimetric operators in print, strings are ignored (or converted to 0).
The text was updated successfully, but these errors were encountered: