2013-06-02 09:47:27 +02:00
|
|
|
/* The scully programming language.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) Peter Dahlberg, Markus Hauschild and Florian Sattler, 2013.
|
|
|
|
|
* Licensed under the GNU GPL v2.
|
|
|
|
|
*/
|
|
|
|
|
|
2013-06-01 00:16:38 +02:00
|
|
|
#ifndef TYPE_H
|
|
|
|
|
#define TYPE_H
|
|
|
|
|
|
2013-06-01 16:41:18 +02:00
|
|
|
#include "llvm/Type.h"
|
2013-06-01 00:16:38 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
2013-06-01 16:12:38 +02:00
|
|
|
enum class Type { BOOL, INT, STRING, VOID };
|
2013-06-01 00:16:38 +02:00
|
|
|
|
2013-06-01 16:22:01 +02:00
|
|
|
std::string typeToString(Type type);
|
2013-06-01 16:41:18 +02:00
|
|
|
llvm::Type* typeToLLVMType(Type type);
|
2013-06-01 16:22:01 +02:00
|
|
|
|
2013-06-01 00:16:38 +02:00
|
|
|
#endif // TYPE_H
|