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

feat: add ClassDeclStmt and ClassDefStmt #153

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

apkrelling
Copy link
Contributor

@apkrelling apkrelling commented Dec 2, 2024

Pull Request description

This PR adds ClassDeclStmt and ClassDefStmt classes.
This PR is an attempt to resolve #90 .

  • added new ASTKind's
  • created ClassDeclStmt class
  • created ClassDefStmt class
  • updated __init__.py to include the new imports and classes in the __all__ list
  • added test for ClassDeclStmt class
  • added test for ClassDefStmt class
  • added transpiler visit method for ClassDeclStmt
  • added transpiler test for ClassDeclStmt
  • added transpiler visit method for ClassDefStmt
  • added transpiler tests for ClassDefStmt

How to test these changes

Pull Request checklists

This PR is a:

  • bug-fix
  • new feature
  • maintenance

About this PR:

  • it includes tests.
  • the tests are executed on CI.
  • the tests generate log file(s) (path).
  • pre-commit hooks were executed locally.
  • this PR requires a project documentation update.

Author's checklist:

  • I have reviewed the changes and it contains no misspelling.
  • The code is well commented, especially in the parts that contain more
    complexity.
  • New and old tests passed locally.

Additional information

Reviewer's checklist

Copy and paste this template for your review's note:

## Reviewer's Checklist

- [ ] I managed to reproduce the problem locally from the `main` branch
- [ ] I managed to test the new changes locally
- [ ] I confirm that the issues mentioned were fixed/resolved .

@apkrelling apkrelling marked this pull request as draft December 2, 2024 14:27
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

Successfully merging this pull request may close these issues.

ClassDeclStmt/ClassDefStmt - Declares and defines a class.
1 participant