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

View File

@@ -0,0 +1,11 @@
#include "identifier.hpp"
namespace ast {
identifier::identifier(token::token token, std::string value)
: token(std::move(token)),
value(std::move(value)) {}
std::string identifier::token_literal() const {
return token.literal;
}
} // namespace ast