Minor formatting.
This commit is contained in:
parent
20c687a787
commit
8c98548dbc
@ -150,11 +150,10 @@ void ActionParser::parsePreconditionSection(ast::Action &action)
|
|||||||
|
|
||||||
tokenizer.expect<std::string>(":precondition");
|
tokenizer.expect<std::string>(":precondition");
|
||||||
|
|
||||||
|
ASTContext astContext(m_domain);
|
||||||
VariableStack variableStack;
|
VariableStack variableStack;
|
||||||
variableStack.push(&action.parameters);
|
variableStack.push(&action.parameters);
|
||||||
|
|
||||||
ASTContext astContext(m_domain);
|
|
||||||
|
|
||||||
action.precondition = parsePrecondition(m_context, astContext, variableStack);
|
action.precondition = parsePrecondition(m_context, astContext, variableStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,11 +165,10 @@ void ActionParser::parseEffectSection(ast::Action &action)
|
|||||||
|
|
||||||
tokenizer.expect<std::string>(":effect");
|
tokenizer.expect<std::string>(":effect");
|
||||||
|
|
||||||
|
ASTContext astContext(m_domain);
|
||||||
VariableStack variableStack;
|
VariableStack variableStack;
|
||||||
variableStack.push(&action.parameters);
|
variableStack.push(&action.parameters);
|
||||||
|
|
||||||
ASTContext astContext(m_domain);
|
|
||||||
|
|
||||||
action.effect = parseEffect(m_context, astContext, variableStack);
|
action.effect = parseEffect(m_context, astContext, variableStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user