added string function to all nodes of ast

This commit is contained in:
Karma Riuk
2025-07-08 10:17:38 +02:00
parent da2b6716b1
commit 31cb483602
12 changed files with 60 additions and 1 deletions

View File

@@ -8,4 +8,8 @@ namespace ast {
std::string identifier::token_literal() const {
return token.literal;
}
std::string identifier::str() const {
return value;
};
} // namespace ast