KeliLanguage / compiler

The compiler for Keli
https://keli-language.gitbook.io/doc/specification/
Apache License 2.0
171 stars 1 forks source link

Dead code elimination #42

Open wongjiahau opened 5 years ago

wongjiahau commented 5 years ago

This can be done by creating a graph from the idless declarations of entry file. Each references to a type annotation, constant or function will create a reference object. From each references object we can create a graph. Then, only nodes linked from the idless decls of the entry files will be transpiled.