New syntax starting to work! Not templates yet, that's next

This commit is contained in:
Nathan Braswell
2015-04-14 16:08:36 -04:00
parent e3aa531856
commit 08431aa748
5 changed files with 52 additions and 30 deletions

View File

@@ -0,0 +1,2 @@
yeah new syntax: 7, 6
yeah new syntax: 8, 8.000000

22
tests/test_newSyntax.krak Normal file
View File

@@ -0,0 +1,22 @@
fun withParams(a: int, b: float) : void {
simple_passthrough(a = a, b = b::) """
printf("yeah new syntax: %d, %f\n", a, b);
"""
}
fun main() : int {
var i: int = 7;
var j: int = 6;
simple_passthrough(i = i, j = j::) """
printf("yeah new syntax: %d, %d\n", i, j);
"""
var a: int = 8
var b: float = 8
withParams(a,b)
return 0
}