17 lines
298 B
Go
17 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
|
||
|
|
}
|