interpreter-in-go/pkg/ast/boolean.go

17 lines
298 B
Go
Raw Normal View History

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