Skip to content

Instantly share code, notes, and snippets.

@prednaz
Created August 18, 2021 21:05
Show Gist options
  • Save prednaz/3df984f429e0c08611fce9bf6ab0e785 to your computer and use it in GitHub Desktop.
Save prednaz/3df984f429e0c08611fce9bf6ab0e785 to your computer and use it in GitHub Desktop.
fromList
[
("main",(0,4)),
("second",(2,14)),
("false",(0,20)),
("true",(0,26)),
("not",(1,32)),
("negate",(1,39)),
("|",(2,46)),
("&",(2,56)),
("+",(2,66)),
("-",(2,76)),
("*",(2,86)),
("/",(2,96)),
("==",(2,106)),
("<",(2,116)),
("if",(3,126))
]
fromList
[
Reset,
Pushfun "main",
Call,
Halt,
Pushval (Integer 2),
Pushval (Integer 1),
Pushfun "second",
Makeapp,
Makeapp,
Update 0,
Slide 1,
Unwind,
Call,
Return,
Pushparam 2,
Update 2,
Slide 3,
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