Anonymous user
Arithmetic evaluation: Difference between revisions
m
→{{header|D}}: removed bug code and set incorrect tag, for no AST build
(→{{header|D}}: Just because it needs attention doesn't mean it's listening in.) |
m (→{{header|D}}: removed bug code and set incorrect tag, for no AST build) |
||
Line 327:
=={{header|D}}==
{{incorrect}}
<pre>module eval;
import std.stdio;
Line 398 ⟶ 336:
// simple stack template
void push(U)(inout U[] stk, U top) {
}
U pop(U)(inout U[] stk, bool peektop = false) {
}
// evalutor function
T eval(T = long)(string expression) {
}
}
}
void main(string[] args) {
}
}
}</pre>
=={{header|Haskell}}==
|