-
Notifications
You must be signed in to change notification settings - Fork 25
feat: add InterfaceDefStmt #269
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
base: main
Are you sure you want to change the base?
Conversation
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.
hi @Sarfia-786 ! thanks for working on that.
in the transpiler visit method you created, the types should be dynamic, you shouldn't check each one.
also avoid using long nested structures. I recommend this video that explains a bit about that: https://www.youtube.com/watch?v=CFRhGnuXG-4
@xmnlab done. |
This pull request has been marked as stale because it has been |
"""Handle InterfaceDefStmt nodes using dynamic type visiting.""" | ||
class_header = f"class {node.name}(ABC):" | ||
self.indent_level += 1 | ||
indent = self.indent_str * self.indent_level |
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.
usually we use _generate_block
for handling indentation automatically. would it be possible to use that?
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.
Yes, we can use @xmnlab, all the PRs were closed by GitHub Actions. Could you please reopen them?
This pull request has been marked as stale because it has been |
Pull Request description
This PR added
InterfaceDefStmt
Pull Request checklists
Note:
proposed in this PR, in both image and ASCII formats. For more
information, check this Google Colab notebook:
https://colab.research.google.com/drive/1xXwHmOMkJKFSmhRvn4WYfSAsdDzMnawf?usp=sharing
This PR is a:
About this PR:
Author's checklist:
complexity.
Additional information
Reviewer's checklist
Copy and paste this template for your review's note: