-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: AREAD support #125
Conversation
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
finished_flag = true; | ||
input_tokens_invalidated = true; | ||
|
||
if (!line.empty()) |
There was a problem hiding this comment.
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?
|
||
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
Kudos, SonarCloud Quality Gate passed! |
🎉 This PR is included in version 0.13.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 0.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
AREAD/AINSERT support.