interpreter-in-go/pkg/ast/boolean.go
jmug 5367fbd29d Move AST nodes to their own files.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-05 13:05:35 -08:00

16 lines
298 B
Go

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
}