Made type warnings non-fatal by default.

This commit is contained in:
2016-06-04 16:42:41 +02:00
parent 813fecbf15
commit 837612bb8d
4 changed files with 81 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
#include <plasp/pddl/expressions/Constant.h>
#include <plasp/pddl/expressions/PredicateDeclaration.h>
#include <plasp/pddl/expressions/PrimitiveType.h>
#include <plasp/utils/Logger.h>
namespace plasp
{
@@ -31,6 +32,7 @@ class Context
}
utils::Parser &parser;
utils::Logger logger;
expressions::PrimitiveTypes primitiveTypes;
//std::unordered_map<std::string, expressions::PrimitiveType *> primitiveTypesHashMap;

View File

@@ -0,0 +1,37 @@
#ifndef __PLASP__UTILS__LOGGER_H
#define __PLASP__UTILS__LOGGER_H
#include <string>
#include <plasp/utils/Parser.h>
namespace plasp
{
namespace utils
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Logger
//
////////////////////////////////////////////////////////////////////////////////////////////////////
class Logger
{
public:
Logger();
void setPedantic(bool isPedantic = true);
void parserWarning(const Parser &parser, const std::string &text);
private:
bool m_isPedantic;
};
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}
#endif