patrick
/
plasp
Archived
1
0
Fork 0
This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
plasp/src/plasp/sas/Value.cpp

32 lines
743 B
C++
Raw Normal View History

2016-05-20 15:29:24 +02:00
#include <plasp/sas/Value.h>
#include <iostream>
2016-05-20 15:29:24 +02:00
namespace plasp
{
namespace sas
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Value
//
////////////////////////////////////////////////////////////////////////////////////////////////////
const Value Value::Any = {Value::Sign::Positive, "(any)"};
////////////////////////////////////////////////////////////////////////////////////////////////////
std::ostream &operator <<(std::ostream &ostream, const Value &value)
{
if (value.sign == Value::Sign::Negative)
ostream << "not ";
return (ostream << value.name);
}
2016-05-20 15:29:24 +02:00
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}