compiler-in-go/pkg/ast/string.go
jmug 9c32fe1d31 Rename module to "compiler-in-go"
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-13 19:56:56 -08:00

16 lines
316 B
Go

package ast
import "code.jmug.me/jmug/compiler-in-go/pkg/token"
type StringLiteral struct {
Token token.Token
Value string
}
func (s *StringLiteral) expressionNode() {}
func (s *StringLiteral) TokenLiteral() string {
return s.Token.Literal
}
func (s *StringLiteral) String() string {
return s.Token.Literal
}