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

Add basic support for generics #90

Merged
merged 4 commits into from
Mar 1, 2025

Conversation

AjayBrahmakshatriya
Copy link
Collaborator

This change set introduces the dyn_var type. This type doesn't have type when created but can be assigned one through the execution of first stage logic. This allows writing generic code that generates code with different types. This also allows computing array and template sizes through first stage code.

The new builder::type opaque type has been introduced that holds runtime type values. These type provides helper functions to operate on types like pointer_of, array_of etc.

Sample 60 has been added to test this basic change.

@AjayBrahmakshatriya AjayBrahmakshatriya merged commit 7d6a15c into BuildIt-lang:master Mar 1, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant