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

Expose macro system to language #1

Open
int3h opened this issue May 15, 2013 · 0 comments
Open

Expose macro system to language #1

int3h opened this issue May 15, 2013 · 0 comments

Comments

@int3h
Copy link
Member

int3h commented May 15, 2013

We currently use macros (via OMeta) to implement rendering extensions. However, these are written and run outside the FTL language. We should expose a language construct for writing macros within the FTL language, which are expanded at compilation time.

This would, for example, allow us to implement 'local' variables (variables which exist just for semantic sugar reasons, such as to break up long expressions, or reuse expressions in multiple places.) Rather than creating an attribute just for these, we can create a macro, and then every usage of this variable is expanded by the macro into its expression.

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

No branches or pull requests

1 participant