view samples/numparse.tp @ 369:6b5096b07dd5

Lame hack to allow LL dialect code to access the module object when its also the parent of the current object
author Michael Pavone <pavone@retrodev.com>
date Wed, 12 Aug 2015 19:13:04 -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"
	}
}