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

Add syntax tree (AST) to operations tree (optree) converter in frontend #103

Merged
merged 3 commits into from
Apr 20, 2024

Conversation

vla5924
Copy link
Member

@vla5924 vla5924 commented Mar 23, 2024

No description provided.

@vla5924 vla5924 self-assigned this Mar 23, 2024
Copy link
Member Author

@vla5924 vla5924 left a comment

Choose a reason for hiding this comment

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

Requires: #110

@vla5924 vla5924 changed the base branch from main to mv/optree-intf March 30, 2024 14:19
@vla5924 vla5924 changed the title Introduce operations tree (optree) and ast::SyntaxTree to optree::Program converter Add syntax tree (AST) to operations tree (optree) converter in frontend Mar 30, 2024
@vla5924
Copy link
Member Author

vla5924 commented Mar 30, 2024

  • add BooleanLiteralValue visitor
  • add some simple tests for starters
  • FAdd, FMult, etc. actually cannot come from parser - need to evaluate type in visitBinaryExpression
  • add auto-numeric-cast helper function, probably in include/optree/helpers.hpp
  • convert logic op results to bool

@vla5924 vla5924 force-pushed the mv/optree branch 2 times, most recently from e5da889 to 4a78508 Compare March 30, 2024 21:15
@vla5924 vla5924 force-pushed the mv/optree-intf branch 2 times, most recently from 5870d68 to aef4317 Compare April 3, 2024 16:52
Base automatically changed from mv/optree-intf to main April 6, 2024 17:56
github-advanced-security[bot]

This comment was marked as resolved.

@vla5924 vla5924 marked this pull request as ready for review April 13, 2024 09:46
@vla5924 vla5924 enabled auto-merge (squash) April 13, 2024 12:09
@vla5924 vla5924 merged commit 286417b into main Apr 20, 2024
10 checks passed
@vla5924 vla5924 deleted the mv/optree branch April 20, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants