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

Implicit type conversion #35

Open
wpmed92 opened this issue Oct 6, 2024 · 0 comments
Open

Implicit type conversion #35

wpmed92 opened this issue Oct 6, 2024 · 0 comments

Comments

@wpmed92
Copy link
Owner

wpmed92 commented Oct 6, 2024

During the analyzer phase the AST should be rewritten so that types match correctly. The rewriting involves inserting ConstructorExpressions with the appropriate type. The codegen part of type conversion is already done.
A prerequisite for this is to modify the ASTVisitor and the AST, since the current raw pointer based approach is not right. We need a reference to the unique_ptr in the visitor methods, not a raw pointer through .get().

The implicit conversion rules can be found in the specs, in section "4.1.10. Implicit Conversions".

@wpmed92 wpmed92 added the feature label Oct 6, 2024
@wpmed92 wpmed92 self-assigned this Oct 6, 2024
@wpmed92 wpmed92 removed their assignment Oct 7, 2024
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