Open tekknolagi opened 3 days ago
Hoist some metadata about objects (types, values for consts, etc) into the code generator. Can probably have:
class CompTimeObject: pass class CompTimeInt(CompTimeObject): pass class CCode(CompTimeObject): pass
and pass that around the compile function instead of just strings.
compile
Could even make the guard functions const-fold opportunistically
guard
Hoist some metadata about objects (types, values for consts, etc) into the code generator. Can probably have:
and pass that around the
compile
function instead of just strings.