Skip to content

Instantly share code, notes, and snippets.

@prednaz
Created August 15, 2021 11:57
Show Gist options
  • Save prednaz/29c0e5e9b4fef9f487566a1960d48867 to your computer and use it in GitHub Desktop.
Save prednaz/29c0e5e9b4fef9f487566a1960d48867 to your computer and use it in GitHub Desktop.
"main" 4
"f" 12
"false" 28
"true" 34
"not" 40
"negate" 47
"|" 54
"&" 64
"+" 74
"-" 84
"*" 94
"/" 104
"==" 114
"<" 124
"if" 134
Reset
Pushfun "main"
Call
Halt
Pushval (Integer 6)
Pushfun "f"
Makeapp
Update 0
Slide 1
Unwind
Call
Return
Pushval (Integer 3)
Pushval (Integer 2)
Pushval (Integer 2)
Pushparam 4
Pushfun "=="
Makeapp
Makeapp
Pushfun "if"
Makeapp
Makeapp
Makeapp
Update 1
Slide 2
Unwind
Call
Return
Pushval (Bool False)
Update 0
Slide 1
Unwind
Call
Return
Pushval (Bool True)
Update 0
Slide 1
Unwind
Call
Return
Pushparam 1
Unwind
Call
Operator Not
Update 1
Slide 2
Return
Pushparam 1
Unwind
Call
Operator Negate
Update 1
Slide 2
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator Or
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator And
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator Plus
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator Minus
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator Times
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator DividedBy
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator Equals
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Unwind
Call
Operator LessThan
Update 2
Slide 3
Return
Pushparam 1
Unwind
Call
Pushparam 3
Pushparam 5
Operator If
Update 3
Slide 4
Unwind
Call
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment