felixangell / kpd

an old compiler for Krug written in D - a prototype version
MIT License
44 stars 1 forks source link

ir builder will declare functions allowing order independent function calls from other modules #92

Closed felixangell closed 6 years ago

felixangell commented 6 years ago

this closes #91

you can now have some code like this:

// main.krug
#module main

#load "other_code.krug"

func main() {
    DoThings();
}
// other_code.krug
#module main

func DoThings() {
     // stuff
}