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

Modeler 4.4: expression parsing [ANT-2313] #2471

Open
wants to merge 65 commits into
base: develop
Choose a base branch
from

Conversation

payetvin
Copy link
Contributor

No description provided.

@payetvin payetvin added this to the Sprint 10 milestone Oct 23, 2024
@payetvin payetvin self-assigned this Oct 23, 2024
@payetvin payetvin changed the title Modeler 4.4: expression parsing Modeler 4.4: expression parsing [ANT-2313] Oct 23, 2024
@a-zakir
Copy link
Contributor

a-zakir commented Oct 24, 2024

add antlr4 here

@payetvin payetvin marked this pull request as ready for review November 4, 2024 12:29
src/solver/modelConverter/convertorVisitor.cpp Outdated Show resolved Hide resolved
Comment on lines 155 to 178
std::any ConvertorVisitor::visitTimeIndex([[maybe_unused]] ExprParser::TimeIndexContext* context)
{
return std::any();
}

std::any ConvertorVisitor::visitTimeShift([[maybe_unused]] ExprParser::TimeShiftContext* context)
{
return std::any();
}

std::any ConvertorVisitor::visitFunction([[maybe_unused]] ExprParser::FunctionContext* context)
{
return std::any();
}

std::any ConvertorVisitor::visitTimeSum([[maybe_unused]] ExprParser::TimeSumContext* context)
{
return std::any();
}

std::any ConvertorVisitor::visitAllTimeSum([[maybe_unused]] ExprParser::AllTimeSumContext* context)
{
return std::any();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

same

src/solver/modelConverter/convertorVisitor.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

add asserts to this class to check that expressions are converted to Node*

src/tests/cucumber/behave.ini Outdated Show resolved Hide resolved
src/solver/modelConverter/convertorVisitor.cpp Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Nov 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

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.

3 participants