Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deferred code generation #172

Open
tekknolagi opened this issue Jun 27, 2024 · 1 comment
Open

Deferred code generation #172

tekknolagi opened this issue Jun 27, 2024 · 1 comment

Comments

@tekknolagi
Copy link
Owner

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.

@tekknolagi
Copy link
Owner Author

Could even make the guard functions const-fold opportunistically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant