diff options
Diffstat (limited to 'ast')
| -rw-r--r-- | ast/ast.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 +} |
