Mercurial > hg > Members > kono > compiler-examples
diff input.txt @ 0:6bf66c125dbc
Initial revision
author | kono |
---|---|
date | Fri, 05 Nov 2004 14:07:59 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/input.txt Fri Nov 05 14:07:59 2004 +0900 @@ -0,0 +1,21 @@ +1 +1+2 // expr +2*3 // mexpr +1+(2*3) // term +1+2*3 // expr order +-1+0x10*010 // token +(0xff&07)|0x100 // logical expression +100/10 +a=1*3 +b=2*3 +a+b +a=(b=3<<2) +a>>1 +b +1==1 +1==0x10 +b==a +b==a?-a:b+1 +b!=a?-a:b+1 +!(b+1>a)?-a:b+1 +!(b+1<a)?-a:b+1