view samples/numparse.tp @ 361:06dceff348ea

llcompile now has Hacky support for calling C functions using dl to lookup symbols and almost has support string constants
author Michael Pavone <pavone@retrodev.com>
date Thu, 23 Apr 2015 19:24:20 -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"
	}
}