This commit is contained in:
Chuck Smith
2024-01-20 13:20:13 -05:00
parent 10821fc88a
commit 13c9062fed
9 changed files with 140 additions and 23 deletions

View File

@@ -264,3 +264,16 @@ func (ce *CallExpression) String() string {
return out.String()
}
type StringLiteral struct {
Token token.Token
Value string
}
func (sl StringLiteral) TokenLiteral() string {
return sl.Token.Literal
}
func (sl StringLiteral) String() string {
return sl.Token.Literal
}
func (sl StringLiteral) expressionNode() {}