compiler-in-go/pkg/ast/string.go

17 lines
319 B
Go
Raw Normal View History

package ast
import "code.jmug.me/jmug/interpreter-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
}