Implemented parsing the signs of values.

This commit is contained in:
2016-05-21 01:17:17 +02:00
parent e9fe6fa219
commit 15289a0c8c
3 changed files with 46 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __SAS__VALUE_H
#define __SAS__VALUE_H
#include <iosfwd>
#include <string>
namespace plasp
@@ -16,13 +17,24 @@ namespace sas
struct Value
{
enum class Sign
{
Positive,
Negative
};
static const Value Any;
Sign sign;
std::string name;
};
////////////////////////////////////////////////////////////////////////////////////////////////////
std::ostream &operator <<(std::ostream &ostream, const Value &value);
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}