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

Tips and inline wasm #12

Open
eliassjogreen opened this issue Mar 19, 2022 · 0 comments
Open

Tips and inline wasm #12

eliassjogreen opened this issue Mar 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@eliassjogreen
Copy link
Member

The language should be extendable using "compiler tips" which are essentially macros, or simply put: compiler tips. These tips would be modularly implemented using an rust interface of some sort, keyed by the tip type as specified by identifier between the parenthesis of the tip: #(wasm). Tips are specified to be able to be single or multi-line depending if the body is surrounded by squiggly parenthesis.

These tips are implemented in rust as taking the body of the tip as raw text and could for example take wasm text format and convert its body to instructions. This would allow for unsafe, but greatly more powerful code much like the rust asm macro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

1 participant