Skip to content

Commit 2222440

Browse files
committed
Add required variables for declaration
1 parent 2fb98e7 commit 2222440

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

semantic_actions_utils.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
#ifndef SEMANTIC_ACTIONS_UTILS_H
66
#define SEMANTIC_ACTIONS_UTILS_H
77

8+
#include <unordered_map>
9+
#include <string>
10+
#include <utility>
11+
12+
using namespace std;
13+
814
namespace semantic_actions_util {
15+
enum VarType{ INT_TYPE, FLOAT_TYPE };
16+
unordered_map<string, pair<int, VarType>> varToVarIndexAndType;
17+
int currentVariableIndex = 1;
918

1019
}
1120
#endif //SEMANTIC_ACTIONS_UTILS_H

0 commit comments

Comments
 (0)