view samples/numparse.tp @ 353:95bc24c729e6

Move right hand parameter to cmp in _compileBinary to a temp reg if it is a constant since those are only supported in the left hand param currently
author Michael Pavone <pavone@retrodev.com>
date Tue, 14 Apr 2015 19:54:03 -0700
parents 74cab9b5f2a4
children
line wrap: on
line source

#{
	main <- {
		print: "42: " . ("42" int32) . ", -42: " . ("-42" int32) . "\n"
		print: "2147483647: " . ("2147483647" int32) . ", -2147483648: " . ("-2147483648" int32) . "\n"
		print: "1.23456789: " . ("1.23456789" parseFloat64) . "\n"
	}
}