very basic parser of let statements
This commit is contained in:
11
src/ast/expressions/identifier.cpp
Normal file
11
src/ast/expressions/identifier.cpp
Normal 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
|
Reference in New Issue
Block a user