Croissant Runtime
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
crsn/examples/stacks.csn

15 lines
175 B

(
(stack r0)
(push @r0 1)
(push @r0 2)
(pop r1 @r0)
(cmp r1 2 (ne? (fault)))
(pop r1 @r0)
(cmp r1 1 (ne? (fault)))
(drop @r0)
(halt)
)