Arithmetic evaluation: Difference between revisions
m
Fixed lang tags (using MediaWiki::API).
m (→{{header|J}}: Add lang tags) |
Underscore (talk | contribs) m (Fixed lang tags (using MediaWiki::API).) |
||
Line 11:
=={{header|ALGOL 68}}==
Output:
=={{header|C}}==
See [[Arithmetic Evaluator/C]].
Line 276:
}
}
};</lang>
=={{header|Common Lisp}}==
Line 638 ⟶ 637:
=={{header|Haskell}}==
Line 859 ⟶ 858:
=={{header|Pop11}}==
<lang pop11>/* Scanner routines */▼
▲/* Scanner routines */
/* Uncomment the following to parse data from standard input
Line 1,008 ⟶ 1,006:
;;; Test it
arith_eval(do_expr()) =></lang>
=={{header|Prolog}}==
{{works with|SWI Prolog}}
<lang prolog>
numeric(X) :- 48 =< X, X =< 57.
not_numeric(X) :- 48 > X ; X > 57.
Line 1,264 ⟶ 1,261:
=={{header|Ursala}}==
with no error checking other than removal of spaces
<lang Ursala>#import std
#import nat
#import flo
Line 1,285 ⟶ 1,281:
test program:
<lang Ursala>#cast %eL
test = evaluate*t
|