aboutsummaryrefslogtreecommitdiff
path: root/calc.y
diff options
context:
space:
mode:
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 }