From bb675a09d7e9f16801792e7775274dd5a44a2a70 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sat, 7 Mar 2015 14:03:07 +0100 Subject: [PATCH] Adding Type::UNKNOWN --- CppEmitter.cpp | 3 +++ Nodes.hpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CppEmitter.cpp b/CppEmitter.cpp index 0a9145d..3fec1fa 100644 --- a/CppEmitter.cpp +++ b/CppEmitter.cpp @@ -288,6 +288,9 @@ std::ostream& operator<<(std::ostream &stream, Type const& type) { case Type::VOID: stream << "void"; break; + case Type::UNKNOWN: + stream << "???????????"; + break; } return stream; diff --git a/Nodes.hpp b/Nodes.hpp index 1e086f5..b8665cc 100644 --- a/Nodes.hpp +++ b/Nodes.hpp @@ -38,7 +38,8 @@ enum class Type { FLOAT, BOOL, DOUBLE, - VOID + VOID, + UNKNOWN }; enum class Operator {