summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-05-21 17:07:53 -0400
committerJune McEnroe <june@causal.agency>2024-05-21 17:07:53 -0400
commitcc8dba0836353aa5ea1096d526daae9129da3b5e (patch)
tree80e361c4023cd75a67dc15b4e1a82e4cb61db0a0
parentAdd April 30 photo (diff)
downloadsrc-cc8dba0836353aa5ea1096d526daae9129da3b5e.tar.gz
src-cc8dba0836353aa5ea1096d526daae9129da3b5e.zip
Fix = precedence in when
Woops, = should have lowest precedence, otherwise expressions like
a = b + c don't parse right.
Diffstat (limited to '')
-rw-r--r--bin/when.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/when.y b/bin/when.y
index 46651ebb..bbc86084 100644
--- a/bin/when.y
+++ b/bin/when.y
@@ -204,8 +204,9 @@ static void printScalar(struct tm scalar) {
 %}
 
 %token Name Number Month Day
+%right '='
 %left '+' '-'
-%right '=' '<' '>'
+%right '<' '>'
 
 %%