This commit is contained in:
Rafał Grodziński
2025-05-29 22:02:44 +09:00
parent e709102abc
commit d5d21aa422
5 changed files with 77 additions and 4 deletions

View File

@@ -2,13 +2,22 @@
#define PARSER_H
#include <vector>
#include <Token.h>
#include <Expression.h>
#include "Token.h"
#include "Expression.h"
class Parser {
private:
std::vector<Token> tokens;
int currentIndex = 0;
//Expression term();
//Expression primary();
Expression matchInteger();
public:
Parser(std::vector<Token> tokens);
std::vector<Expression> getExpressions();
//Expression getExpression();
};
#endif