view samples/compilerbug_004.tp @ 214:e01137a97654

Make assignments an expression in the grammar
author Michael Pavone <pavone@retrodev.com>
date Fri, 06 Dec 2013 19:19:54 -0800
parents 38127fbf5f9d
children
line wrap: on
line source

#{
	foo <- 42
	new <- {
		#{
			bar <- foo
		}
	}

	main <- {
		print: (string: ((new: ) bar)) . "\n"
	}

}