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

Infer correct type from numeric literals. #358

Open
iwoplaza opened this issue Sep 19, 2024 · 0 comments
Open

Infer correct type from numeric literals. #358

iwoplaza opened this issue Sep 19, 2024 · 0 comments
Milestone

Comments

@iwoplaza
Copy link
Collaborator

  • Create an AbstractInt type symbol (similar to UnknownData) that signifies the type is some integer, but we cannot be sure whether it is an u32 or i32.
  • Create an AbstractFloat type symbol (similar to UnknownData) that signifies the type is some float, but we cannot be sure whether it is an f32 or f16.
  • Infer the type of a literal numeric string based on its format ('u' suffix -> U32, 'i' suffix -> I32, . -> AbstractFloat, 'f' suffix -> F32, 'h' suffix -> F16, etc.)
@iwoplaza iwoplaza added this to the 0.3.0 - TGSL milestone Sep 19, 2024
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

No branches or pull requests

1 participant