interpreter-in-go/pkg/ast/integer.go
jmug 5367fbd29d Move AST nodes to their own files.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-05 13:05:35 -08:00

16 lines
327 B
Go

package ast
import "code.jmug.me/jmug/interpreter-in-go/pkg/token"
type IntegerLiteral struct {
Token token.Token
Value int64
}
func (il *IntegerLiteral) expressionNode() {}
func (il *IntegerLiteral) TokenLiteral() string {
return il.Token.Literal
}
func (il *IntegerLiteral) String() string {
return il.Token.Literal
}