view samples/logical.tp @ 146:d8f92ebf1ff6

Fix string literal escaping to allow more than one of each type of escaped character
author Mike Pavone <pavone@retrodev.com>
date Fri, 09 Aug 2013 04:29:37 -0700
parents 59a94f3ad56f
children
line wrap: on
line source

#{

	foo <- {
		print: "foo\n"
		true
	}
	
	bar <- {
		print: "bar\n"
		false
	}
	
	baz <- {
		print: "baz\n"
		true
	}
	
	qux <- {
		print: "shouldn't be printed\n"
		true
	}
	
	
	main <- {
		foo && bar || (baz || qux)
	}

}