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

Fix 'float_type' assertion error #28

Merged
merged 3 commits into from
Nov 9, 2023
Merged

Fix 'float_type' assertion error #28

merged 3 commits into from
Nov 9, 2023

Conversation

amanda849
Copy link
Contributor

This PR fixes #24, which is the assertion error encountered when transforming float_type.

Instead of using the from_lark method to construct a FloatType instance with unaltered args, this change uses a lambda function to call the FloatType constructor with the value of the Token rather than the Token itself.

@amanda849 amanda849 closed this Oct 23, 2023
@amanda849 amanda849 reopened this Oct 23, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #28 (7fac64c) into master (5bff437) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #28   +/-   ##
=======================================
  Coverage   94.52%   94.52%           
=======================================
  Files          16       16           
  Lines        1807     1807           
=======================================
  Hits         1708     1708           
  Misses         99       99           
Files Coverage Δ
mlir/parser_transformer.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amanda849
Copy link
Contributor Author

@tbennun Could you take a look when you get the chance?

Copy link
Contributor

@tbennun tbennun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@tbennun tbennun merged commit bddedc2 into spcl:master Nov 9, 2023
2 checks passed
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.

Tutorial Error: lark.exceptions.VisitError: Error trying to process rule "float_type"
3 participants