working towards function overloading, the emitted functions and function calls are now decorated and we're starting to get the prereqs for function lookup

This commit is contained in:
Nathan Braswell
2016-01-13 21:09:28 -05:00
parent cb5b072b58
commit fe6818edfc
5 changed files with 48 additions and 7 deletions

View File

@@ -4,6 +4,11 @@ fun simple_print(to_print: *char) {
printf("%s", to_print);
"""
}
fun simple_print(to_print: int) {
__if_comp__ __C__ simple_passthrough(to_print::) """
printf("%d", to_print);
"""
}
var a = 1
var b = 2

View File

@@ -12,7 +12,8 @@ fun some_other_function(in: bool): float {
return 0.0
}
fun main(): int {
simple_print("Hello World!")
simple_print("Hello World!\n")
simple_print(1337)
return 0
}