From e561c55f73dc18d7419a317064a01ed10b64c333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 4 Jun 2016 17:51:21 +0200 Subject: [PATCH] Made Action section parsing case-insensitive. --- src/plasp/pddl/Action.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plasp/pddl/Action.cpp b/src/plasp/pddl/Action.cpp index f534606..2c11502 100644 --- a/src/plasp/pddl/Action.cpp +++ b/src/plasp/pddl/Action.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include namespace plasp @@ -50,7 +51,7 @@ Action &Action::parseDeclaration(Context &context) { context.parser.expect(":"); - const auto sectionIdentifier = context.parser.parseIdentifier(isIdentifier); + const auto sectionIdentifier = utils::toLowerCase(context.parser.parseIdentifier(isIdentifier)); if (sectionIdentifier == "precondition") action->m_precondition = parsePreconditionExpression(context, action->m_parameters);