Skip to content

Commit

Permalink
MATLAB function call, operator and matrix support, code cleanup (#641)
Browse files Browse the repository at this point in the history
## MATLAB function call, operator and matrix support, code cleanup
This PR adds support for Operators, matrix literals, and function calls.
I also got rid of some old Fortran routines that didn't work with
MATLAB. Added support for some Operator types, we now support four of
them and have three remaining. Those are going to have to be resolved by
translating them to CAST loop constructs.

## Relevant features:
- Added Operator support (Boolean, comparison, unary)
- Added function call node support
- Added n-dimensional matrix support for all primitive types
- Added new CI test cases for all of the above
- Added a file with Waterloo model Tree-sitter syntax tokens

## Bugfixes
- Fixed a bug where CAST output was getting wrapped in an extra list.
- Fixed a bug were the source_refs node wasn't getting included on
certain structures. Our CI now checks them all.

## Related issues
Resolves #590 #635 #636
Work towards #562

---------

Co-authored-by: Joseph Astier <[email protected]>
Co-authored-by: Gus Hahn-Powell <[email protected]>
  • Loading branch information
3 people authored Nov 14, 2023
1 parent e740ac1 commit d193a52
Show file tree
Hide file tree
Showing 13 changed files with 692 additions and 1,151 deletions.
56 changes: 0 additions & 56 deletions skema/program_analysis/CAST/matlab/cast_out

This file was deleted.

Loading

0 comments on commit d193a52

Please sign in to comment.