Skip to content

Commit 7698fb4

Browse files
committed
Updated TYPES for the parser.
1 parent 72342b0 commit 7698fb4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/Essentials/Types.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "Types.h"

src/Essentials/Types.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#pragma once
2+
3+
#include <iostream>
4+
#include <string>
5+
#include <utility>
6+
7+
namespace FPL::Types {
8+
enum BUILTIN_TYPE {
9+
VOID,
10+
INT,
11+
DOUBLE,
12+
STRING,
13+
BOOL,
14+
AUTO
15+
};
16+
17+
class Types {
18+
public:
19+
explicit Types(std::string name = "", const enum BUILTIN_TYPE type = VOID) : Name(std::move(name)), Type(type){}
20+
21+
std::string Name;
22+
enum BUILTIN_TYPE Type;
23+
};
24+
}

0 commit comments

Comments
 (0)