aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-03-07 18:33:21 +0000
committerCori Barker <coribarker2@gmail.com>2026-03-07 18:33:21 +0000
commit50a51df0404ee4f057fbc19657672d1c7d3eef68 (patch)
tree9cb9ed4572a357448f2b78c4ac0add7eaf6a1e7e /src/parser.cpp
parent6761fdd434a7e54551fe28398361f9eed5268406 (diff)
removed implementations of symbol table related classes, need to fix the parser to use the new AST node classes then i can write the symbol table classes and refactor the lexer and parser to use the symbol table
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index b697254..fe86397 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -4,8 +4,8 @@
Parser::Parser(const std::vector<Token>& tokens) : tokens_(tokens), position_(0) {}
-std::unique_ptr<Program> Parser::parse() {
- auto program = std::make_unique<Program>();
+std::unique_ptr<ProgramNode> Parser::parse() {
+ auto program = std::make_unique<ProgramNode>();
while (peek().type != TokenType::END_OF_FILE) {
try {