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: AREAD support #125

Merged
merged 7 commits into from
May 14, 2021
Merged

Conversation

slavek-kucera
Copy link
Contributor

@slavek-kucera slavek-kucera commented May 6, 2021

AREAD/AINSERT support.

  • AREAD while in COPY member not (correctly) supported yet.

Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
@slavek-kucera slavek-kucera changed the title AREAD support feat: AREAD support May 6, 2021
finished_flag = true;
input_tokens_invalidated = true;

if (!line.empty())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we do pseudo-ascii conversion here?

@slavek-kucera slavek-kucera marked this pull request as ready for review May 6, 2021 16:15

const auto& record = dynamic_cast<const semantics::string_assembler_operand&>(*ops.value[0]).value;
AINSERT_operand_visitor visitor;
dynamic_cast<const semantics::expr_assembler_operand&>(*ops.value[1]).expression->apply(visitor);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be enough to just dynamic_cast the machine expression to expressions::mach_expr_symbol and get the value from there? Seems easier than defining a visitor.

&& ops.value[1]->type == semantics::operand_type::EMPTY)
return aread_variant::reader;

AREAD_operand_visitor op(&eval_ctx);
Copy link
Contributor

Choose a reason for hiding this comment

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

same thing here? dynamic_cast to semantics::expr_ca_operand?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 32 Code Smells

89.0% 89.0% Coverage
0.0% 0.0% Duplication

@michalbali256 michalbali256 merged commit 052c844 into eclipse-che4z:development May 14, 2021
@github-actions
Copy link

🎉 This PR is included in version 0.13.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Jun 1, 2021

🎉 This PR is included in version 0.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@slavek-kucera slavek-kucera deleted the aread branch June 11, 2021 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants