An implementation of Unix dc and POSIX bc with GNU and BSD extensions. Finished, but well-maintained.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
650 B

aa = 0
# This is a comment.
while (q==0) { ++q; continue; }
last
print "i: ", i
halt
define x(e) { return 0; }
define x(e) { return 4*(e+e); }
define x(e) { return (e+e)*4; }
define a() { return (5); };define b() { return (6); }
limits
.
if (q!=0) { x=3; } else { x=4; }
x<=0
while (q!=0 && x==0) { ++q; }
while (q!=0 || x==0) { ++q; }
while (!q) { ++q; }
for (; x<0; ++x) { y += 1; }
for (x=0;; ++x) { y += 1; }
for (x=0; x<0;) { y += 1; }
for (x=0;;) { y += 1; }
for (; x<0;) { y += 1; }
for (;; ++x) { y += 1; }
for (;;) { y += 1; }
3e2981
9.892108e-20
obase = 0
obase = 1
define void a(e) { "stuff" }
maxibase()
maxobase()
maxscale()
v = "stuff"