Minor formatting.

This commit is contained in:
Patrick Lühne 2017-06-17 19:56:53 +02:00
parent 20c687a787
commit 8c98548dbc
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -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);
} }