You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces support for generating CAST import statements. This
is using tree sitter, as part of the ongoing effort to port over the
Python AST to CAST generation to use tree-sitter.
### Summary of Changes
- Adds handlers to python/ts2cast.py to support CAST generation for
import statements.
- Adds basic CAST generation for the attribute idiom. In order to
support function calls from imports.
- Adds test script test_import_cast.py with unit tests to maintain
consistency.
- Added 'support' for yields and assert statements. The current
generation is to passthrough them, so nothing important gets generated
from these.
### Related issues
-
Resolves#804
---------
Co-authored-by: Vincent Raymond <vincent@lum.ai>
This PR introduces support for generating CAST import statements. This
is using tree sitter, as part of the ongoing effort to port over the
Python AST to CAST generation to use tree-sitter.
### Summary of Changes
- Adds handlers to python/ts2cast.py to support CAST generation for
import statements.
- Adds basic CAST generation for the attribute idiom. In order to
support function calls from imports.
- Adds test script test_import_cast.py with unit tests to maintain
consistency.
- Added 'support' for yields and assert statements. The current
generation is to passthrough them, so nothing important gets generated
from these.
### Related issues
-
Resolves#804
---------
Co-authored-by: Vincent Raymond <vincent@lum.ai> 102dd72
As part of porting the PyAST2CAST generation to tree-sitter, we're porting all the features that we currently support piece-by-piece.
This issue is to track support for Imports. Add handling for imports for Python tree-sitter, and also create any appropriate unit tests.
Tasks
The text was updated successfully, but these errors were encountered: