view samples/testdict.tp @ 350:a3b06d53bcb9

Make il and x86 modules cope with dict hash instead of dict linear for the program definition
author Michael Pavone <pavone@retrodev.com>
date Fri, 10 Apr 2015 01:19:46 -0700
parents 6735db9b44ba
children
line wrap: on
line source

#{
	main <- {
		foo <- dict linear:
		foo set: "key1" "val1"
		foo set: "key2" "val2"
		foreach: foo :k :v {
			print: k . ", " . v . "\n"
		}

	}
}