New syntax starting to work! Not templates yet, that's next
This commit is contained in:
2
tests/test_newSyntax.expected_results
Normal file
2
tests/test_newSyntax.expected_results
Normal file
@@ -0,0 +1,2 @@
|
||||
yeah new syntax: 7, 6
|
||||
yeah new syntax: 8, 8.000000
|
||||
22
tests/test_newSyntax.krak
Normal file
22
tests/test_newSyntax.krak
Normal 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user