very basic parser of let statements

This commit is contained in:
Karma Riuk
2025-07-03 13:30:56 +02:00
parent c091f7f021
commit de465b6122
9 changed files with 311 additions and 0 deletions

9
src/ast/ast.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include "ast.hpp"
namespace ast {
std::string program ::token_literal() const {
if (statements.size() > 0)
return statements[0]->token_literal();
return "";
}
} // namespace ast