feat: lower typed programs and interpret IR
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
to_fahrenheit proc(celsius float) float { return celsius * 9 / 5 + 32 }
|
||||
|
||||
main proc() float {
|
||||
temperature :: 20
|
||||
return to_fahrenheit(temperature)
|
||||
}
|
||||
Reference in New Issue
Block a user