2025-01-13 19:51:49 -08:00
|
|
|
package ast
|
|
|
|
|
|
2025-01-13 19:56:56 -08:00
|
|
|
import "code.jmug.me/jmug/compiler-in-go/pkg/token"
|
2025-01-13 19:51:49 -08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|