Interpreter prototype alpha
c++ interpreter for make believe language
 
Loading...
Searching...
No Matches
manager.h
Go to the documentation of this file.
1
8#ifndef MANAGER_H
9#define MANAGER_H
10#include "../lexer/lexer.h"
11#include "../parser/parser.h"
12#include "../Interpreterr/Interpreter.h"
13
17class manager{
18public:
24 void __BEGIN__PROCESSING(const std::string& filePath);
25
26private:
30 std::string filepath = "";
31
35 int lnNum = 0;
36
40 static const int acceptable_charactersSIZE = 86;
41
45 bool isInComment = false;
46
52 static bool aceptableChars(const char& character);
53
57 static const std::array<char, manager::acceptable_charactersSIZE> acceptable_characters;
58
64 void RUN__INTERPRETER(const std::string& currentLine);
65
71 static void displayVector(const std::vector<token>& vect);
72};
73
74#endif
std::string filepath
filepath of the file to be processed
Definition manager.h:30
static void displayVector(const std::vector< token > &vect)
displays a vector of tokens for debugging purposes
Definition manager.cpp:119
static bool aceptableChars(const char &character)
determines if the character being read is part of acceptable characters
Definition manager.cpp:112
static const std::array< char, manager::acceptable_charactersSIZE > acceptable_characters
an array of acceptable characters that can be processed by the lexer
Definition manager.h:57
void RUN__INTERPRETER(const std::string &currentLine)
runs the lexer, parser and interpreter for the current line
Definition manager.cpp:78
bool isInComment
is used to keep track of whether or not a comment is currently being read
Definition manager.h:45
static const int acceptable_charactersSIZE
array size of acceptable characters that can be processed by the lexer
Definition manager.h:40
int lnNum
current line in the file being processed
Definition manager.h:35
void __BEGIN__PROCESSING(const std::string &filePath)
begins processing the file passed in as a string
Definition manager.cpp:3
is responsible for managing the opening of the file and running of the lexer, parser and interpreter
Definition manager.h:17