Put generic Type parsing in separate function.

This commit is contained in:
2016-06-01 17:02:35 +02:00
parent 25cf7c8ae8
commit b249e1cbf8
3 changed files with 37 additions and 12 deletions

View File

@@ -5,6 +5,7 @@
#include <plasp/pddl/EitherType.h>
#include <plasp/pddl/PrimitiveType.h>
#include <plasp/utils/Parser.h>
namespace plasp
{
@@ -17,8 +18,14 @@ namespace pddl
//
////////////////////////////////////////////////////////////////////////////////////////////////////
class Context;
////////////////////////////////////////////////////////////////////////////////////////////////////
using TypePtr = boost::variant<const PrimitiveType *, const EitherType *>;
TypePtr parseType(utils::Parser &parser, Context &context);
////////////////////////////////////////////////////////////////////////////////////////////////////
}