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

feat(compiler): Allow exporting the function table #1870

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

spotandjake
Copy link
Member

While trying to play arround with https://github.com/contextfreeinfo/taca/tree/main I noticed that it uses the function table for callbacks which grain didnt support. This pr adds the ability to run the compiler with the --export-function-table flag which takes a name as a string. which causes the function table to be exported under the given name during linking. This is primarily useful for writing foreign bindings.

Accidently duplicated the start section tests
@spotandjake
Copy link
Member Author

Converting to draft as this might need some more thought. given that grain closures make functions in the function table a little harder.

@spotandjake spotandjake marked this pull request as draft June 22, 2023 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant