mattbierner / khepri

ECMAScript derived programming language
http://khepri-lang.com/
MIT License
67 stars 3 forks source link

op to function generates duplicate Definitions #76

Closed mattbierner closed 10 years ago

mattbierner commented 10 years ago

Every op converted to a function generates an inline fn.

Only one top level func should be generated for each op. A generalized optimization pass could then replace the custom khpri_peep curried op inlining logic.

mattbierner commented 10 years ago

Inline pass created, but more aggressive inlining functionality currently unused. All operators functions have also been defined in a builtins file.

This will also require tracking which ops are used so we don't generate a huge header with all of them in every file.