-
Notifications
You must be signed in to change notification settings - Fork 3
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 syntax for global variables #169
Comments
does this do the job? (it works now I believe) rot = 1.0
@guppy
main() -> float:
return py(rot) |
No it doesn't, although I accept this is a problem with my example. Perhaps It would be clearer to write |
yes 👍 |
I think it might be easier to share intent if we replace "global" with "extern"/ |
CQCL/hugr#1123 Adds a |
I would like to write a guppy program such as:
which compiles to a hugr containing a global Const node representing
rot
, which would be someCustomConst
including a symbol name and a type. This Const would be further lowered to an extern symbol during codegen.The syntax used above is purely for explanation and I have no attachment to it.
The text was updated successfully, but these errors were encountered: