diff options
| author | Bobby <[email protected]> | 2023-11-17 21:19:14 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-11-17 21:19:14 +0000 |
| commit | b7d832da734647049f28c6994292d77b6e2c60eb (patch) | |
| tree | aae17c267e6079b597538fe464df224013403872 /ast | |
| parent | 195c3672d249690c8272ad24dc18239f34a47bea (diff) | |
| download | mana-b7d832da734647049f28c6994292d77b6e2c60eb.tar.xz mana-b7d832da734647049f28c6994292d77b6e2c60eb.zip | |
added parsing boolean expressions
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 +} |
