-
Notifications
You must be signed in to change notification settings - Fork 11
Add support for returning values from defcal statements #24
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
Conversation
… to defcal and subroutine statements, added support for using Program.returns in subroutine decorator based on type hinting and added tests.
@PhilReinhold and @jcjaskula-aws would either of you be willing / able to review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment, but otherwise this all looks good to me! I'll give @jcjaskula-aws some time to leave any other comments, but if not I think we can merge.
Co-authored-by: Phil Reinhold <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very interesting, wrote some small comments. Let's follow or modify the first one on naming, the others can be reported and deferred.
…PortVar, FrameVar and WaveformVar
…ormType and FrameType
Added
returns
method to theoqpy.Program
class, for adding return statements todefcal
declarations.The
Program.returns
statement can also be used within@subroutine
decorated functions instead of thereturn
keyword, this opens up the possibility of having branching withing such functions that can have multiple return statements.All added code covered by tests
Closes #21