annotate samples/logical.tp @ 253:697c2c562af2

Fix infinite loop in hash dict
author Michael Pavone <pavone@retrodev.com>
date Sat, 31 May 2014 21:27:03 -0700
parents 59a94f3ad56f
children
rev   line source
pavone@97 1 #{
pavone@97 2
pavone@97 3 foo <- {
pavone@97 4 print: "foo\n"
pavone@97 5 true
pavone@97 6 }
pavone@97 7
pavone@97 8 bar <- {
pavone@97 9 print: "bar\n"
pavone@97 10 false
pavone@97 11 }
pavone@97 12
pavone@97 13 baz <- {
pavone@97 14 print: "baz\n"
pavone@97 15 true
pavone@97 16 }
pavone@97 17
pavone@97 18 qux <- {
pavone@97 19 print: "shouldn't be printed\n"
pavone@97 20 true
pavone@97 21 }
pavone@97 22
pavone@97 23
pavone@97 24 main <- {
pavone@97 25 foo && bar || (baz || qux)
pavone@97 26 }
pavone@97 27
pavone@97 28 }