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