Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
[Float] a
|
||||
[String = ((Float, Float) -> Float)] b
|
||||
b[‘+’] = (x, y) -> y + x
|
||||
b[‘-’] = (x, y) -> y - x
|
||||
b[‘*’] = (x, y) -> y * x
|
||||
b[‘/’] = (x, y) -> y / x
|
||||
b[‘^’] = (x, y) -> y ^ x
|
||||
|
||||
L(c) ‘3 4 2 * 1 5 - 2 3 ^ ^ / +’.split(‘ ’)
|
||||
I c C b
|
||||
V first = a.pop()
|
||||
V second = a.pop()
|
||||
a.append(b[c](first, second))
|
||||
E
|
||||
a.append(Float(c))
|
||||
print(c‘ ’a)
|
||||
Loading…
Add table
Add a link
Reference in a new issue