summaryrefslogtreecommitdiff
path: root/oracles/calc.php
diff options
context:
space:
mode:
Diffstat (limited to 'oracles/calc.php')
-rw-r--r--oracles/calc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/oracles/calc.php b/oracles/calc.php
index 4888b95..bcc127b 100644
--- a/oracles/calc.php
+++ b/oracles/calc.php
@@ -84,6 +84,13 @@ class calculator extends oracle {
}
}
+ // no implicit multiplication
+ for ($i = 0; $i < count($tokens) - 1; $i++) {
+ if ($tokens[$i][0] == "n" && $tokens[$i+1] == ["g", "("]) {
+ return "";
+ }
+ }
+
//strategy:
// traverse to group open (if there is one)
// - return to start with the internals