view samples/int64.tp @ 225:262f5ae1bb1b

Added a new binaryOps:withHigherPrec macro to simplify specification of binary operator precedence level rules in the grammar
author Michael Pavone <pavone@retrodev.com>
date Sun, 29 Dec 2013 14:39:54 -0800
parents f98790d8a53d
children
line wrap: on
line source

#{
	main <- {
		a <- 2147483647
		b <- 2147483647i64
		print: "a + a = " . (string: a + a) . "\n"
		print: "b + b = " . (string: b + b) . "\n"
		print: "hex: a + a = " . (hex: a + a) . "\n"
		print: "hex: b + b = " . (hex: b + b) . "\n"
	}
}