File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include " Statement.h"
2
+
3
+ namespace FPL ::Statement {
4
+ Statement::Statement (StatementKind kind, std::string name, FPL::Types::Types type) {
5
+ StatementType = type;
6
+ StatementName = name;
7
+ StatementKind{kind};
8
+ }
9
+ }
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include < iostream>
4
+ #include < map>
5
+ #include < string>
6
+
7
+ #include " Types.h"
8
+
9
+ namespace FPL ::Statement {
10
+
11
+ enum class StatementKind : int {
12
+ VARIABLE_DECLARATION,
13
+ FUNCTION_CALL,
14
+ LITTERAL
15
+ };
16
+
17
+ inline constexpr const char * sStatementKindStrings [] = {
18
+ " VARIABLE_DECLARATION" ,
19
+ " FUNCTION_CALL" ,
20
+ " LITTERAL"
21
+ };
22
+
23
+ class Statement {
24
+ public:
25
+ Statement ();
26
+ Statement (StatementKind kind, std::string name, FPL::Types::Types type);
27
+
28
+ std::string StatementName;
29
+ FPL::Types::Types StatementType{FPL::Types::Types (" vide" , FPL::Types::BUILTIN_TYPE::VOID)};
30
+ StatementKind kind{};
31
+ };
32
+ }
You can’t perform that action at this time.
0 commit comments