aboutsummaryrefslogtreecommitdiff
path: root/ast
diff options
context:
space:
mode:
Diffstat (limited to 'ast')
-rw-r--r--ast/ast.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/ast/ast.go b/ast/ast.go
index 1942a68..b2634d4 100644
--- a/ast/ast.go
+++ b/ast/ast.go
@@ -191,3 +191,16 @@ func (il *IntegerLiteral) TokenLiteral() string {
func (il *IntegerLiteral) String() string {
return il.Token.Literal
}
+
+type Boolean struct {
+ Token tokens.Token
+ Value bool
+}
+
+func (b *Boolean) expressionNode() {}
+func (b *Boolean) TokenLiteral() string {
+ return b.Token.Literal
+}
+func (b *Boolean) String() string {
+ return b.Token.Literal
+}