view samples/logical.tp @ 187:810edf474f86

Fix parse precedence problem between opsyms and symbols in assignments
author Mike Pavone <pavone@retrodev.com>
date Mon, 26 Aug 2013 17:46:47 -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)
	}

}