Added warnings for currently under-construction sections.
This commit is contained in:
parent
0d3cb152f9
commit
34d9c7a1c2
@ -166,6 +166,8 @@ void ActionParser::parseEffectSection(ast::Action &)
|
|||||||
tokenizer.expect<std::string>(":effect");
|
tokenizer.expect<std::string>(":effect");
|
||||||
tokenizer.expect<std::string>("(");
|
tokenizer.expect<std::string>("(");
|
||||||
|
|
||||||
|
m_context.warningCallback(tokenizer.location(), "effect parser under construction, section is currently ignored");
|
||||||
|
|
||||||
// TODO: reimplement
|
// TODO: reimplement
|
||||||
//VariableStack variableStack;
|
//VariableStack variableStack;
|
||||||
//variableStack.push(&action.parameters);
|
//variableStack.push(&action.parameters);
|
||||||
|
@ -21,6 +21,8 @@ ast::InitialState parseInitialState(Context &context, ASTContext &)
|
|||||||
|
|
||||||
ast::InitialState initialState;
|
ast::InitialState initialState;
|
||||||
|
|
||||||
|
context.warningCallback(tokenizer.location(), "initial state parser under construction, section is currently ignored");
|
||||||
|
|
||||||
// TODO: reimplement
|
// TODO: reimplement
|
||||||
/*const auto parseInitialStateElement =
|
/*const auto parseInitialStateElement =
|
||||||
[&]() -> ExpressionPointer
|
[&]() -> ExpressionPointer
|
||||||
|
@ -268,6 +268,8 @@ void ProblemParser::parseInitialStateSection(ast::Problem &problem)
|
|||||||
|
|
||||||
ASTContext astContext(problem);
|
ASTContext astContext(problem);
|
||||||
|
|
||||||
|
m_context.warningCallback(tokenizer.location(), "initial state parser under construction, section is currently ignored");
|
||||||
|
|
||||||
// TODO: reimplement
|
// TODO: reimplement
|
||||||
//problem.initialState = parseInitialState(m_context, astContext);
|
//problem.initialState = parseInitialState(m_context, astContext);
|
||||||
//tokenizer.expect<std::string>(")");
|
//tokenizer.expect<std::string>(")");
|
||||||
@ -287,6 +289,8 @@ void ProblemParser::parseGoalSection(ast::Problem &problem)
|
|||||||
|
|
||||||
ASTContext expressionContext(problem);
|
ASTContext expressionContext(problem);
|
||||||
|
|
||||||
|
m_context.warningCallback(tokenizer.location(), "goal parser under construction, section is currently ignored");
|
||||||
|
|
||||||
// TODO: reimplement
|
// TODO: reimplement
|
||||||
//problem.goal = parsePreconditionExpression(m_context, expressionContext);
|
//problem.goal = parsePreconditionExpression(m_context, expressionContext);
|
||||||
//tokenizer.expect<std::string>(")");
|
//tokenizer.expect<std::string>(")");
|
||||||
|
Reference in New Issue
Block a user