aboutsummaryrefslogtreecommitdiff
path: root/calc.y
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-07-17 01:16:50 +0200
committerDimitri Sokolyuk <demon@dim13.org>2019-07-17 01:16:50 +0200
commit493ed614f0662fe645119957b4e54865059fd110 (patch)
tree884bf4376adfd06b3cec3b10e86f440ef8c3eb16 /calc.y
parentb5678d2feec83452973f40b3a16ac30c55d6f5a9 (diff)
add go.mod
Diffstat (limited to 'calc.y')
-rw-r--r--calc.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/calc.y b/calc.y
index 3ca3083..ca8ceaa 100644
--- a/calc.y
+++ b/calc.y
@@ -50,7 +50,7 @@ exp
: NUMBER
| WORD { $$ = reg[$1] }
| '_' { $$ = reg[last] }
- | '!' { $$ = rand.Float64() }
+ | '?' { $$ = rand.Float64() }
| exp '+' exp { $$ = $1 + $3 }
| exp '-' exp { $$ = $1 - $3 }
| exp '*' exp { $$ = $1 * $3 }