Add null literal
Some checks failed
Build / build (push) Successful in 1m30s
Test / build (push) Has been cancelled

This commit is contained in:
Chuck Smith
2024-03-19 16:33:13 -04:00
parent 60d27f09d7
commit 97eeae0c1a
9 changed files with 59 additions and 0 deletions

View File

@@ -134,6 +134,15 @@ func (i *Identifier) expressionNode() {}
func (i *Identifier) TokenLiteral() string { return i.Token.Literal }
func (i *Identifier) String() string { return i.Value }
// Null represents a null value
type Null struct {
Token token.Token
}
func (n *Null) expressionNode() {}
func (n *Null) TokenLiteral() string { return n.Token.Literal }
func (n *Null) String() string { return n.Token.Literal }
type Boolean struct {
Token token.Token
Value bool