awtk/tests/fscripts/demo_expr.fs
2021-01-07 15:14:14 +08:00

25 lines
294 B
Forth

a = 10
b = 20
print(a<b)
print(1+2)
print(1-2)
print(1*2)
print(1/2)
print(3%2)
print(a||b)
print(a&&b)
print(a|b)
print(a&b)
print(!a)
print(~a)
print(a<b)
print(a<=b)
print(a>b)
print(a>=b)
print((1+2)*(2+3))
print(sin(a) + sin(b))
print(set(a, a+1))
print(set(a, a+b))
print("abc" + "123")