diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-02-09 11:59:14 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-02-09 11:59:14 +0000 |
| commit | b3f83360282bfe327c0ccbeecab706e0e7d2c050 (patch) | |
| tree | 1ab29e9ebbf3d3f2fb66f59cbbc687451f8da62e /include/parser/parser.h | |
| parent | 26738e6c932038ea309a5dbaa9e941fc1ce144b8 (diff) | |
Changed .h to .hpp
Diffstat (limited to 'include/parser/parser.h')
| -rw-r--r-- | include/parser/parser.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/parser/parser.h b/include/parser/parser.h deleted file mode 100644 index 3955e2e..0000000 --- a/include/parser/parser.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef PARSER_H -#define PARSER_H - -#include "lexer/token.h" -#include "parser/ast_node.h" - -#include <vector> - -class Parser { -public: - explicit Parser(const std::vector<Token>& tokens); - std::unique_ptr<Program> parse(); - -private: - std::vector<Token> tokens_; - int position_; - - std::unique_ptr<ASTNode> parseStatement(); - std::unique_ptr<ASTNode> parseExpression(); - std::unique_ptr<ASTNode> parseAddSub(); - std::unique_ptr<ASTNode> parseMulDiv(); - std::unique_ptr<ASTNode> parsePrimary(); - std::unique_ptr<ASTNode> parseDeclaration(); - std::unique_ptr<ASTNode> parseAssignment(); - Token advance(); - Token peek(); - bool isAtEnd(); - void error(std::string s); -}; - -#endif |
