Skip to content

Instantly share code, notes, and snippets.

@prednaz
Created August 18, 2021 21:36
Show Gist options
  • Select an option

  • Save prednaz/002c5d439ce9d8db9bdc518a8220cd37 to your computer and use it in GitHub Desktop.

Select an option

Save prednaz/002c5d439ce9d8db9bdc518a8220cd37 to your computer and use it in GitHub Desktop.
fromList
[
("main",(0,4)),
("k1",(2,18)),
("false",(0,24)),
("true",(0,30)),
("not",(1,36)),
("negate",(1,43)),
("|",(2,50)),
("&",(2,60)),
("+",(2,70)),
("-",(2,80)),
("*",(2,90)),
("/",(2,100)),
("==",(2,110)),
("<",(2,120)),
("if",(3,130))
]
fromList
[
Reset,
Pushfun "main",
Call,
Halt,
Pushval (Integer 2),
Pushval (Integer 1),
Pushfun "k1",
Makeapp,
Makeapp,
Pushval (Integer 0),
Pushfun "k1",
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