compiler-in-go/pkg/ast/integer.go

17 lines
324 B
Go
Raw Normal View History

package ast
import "code.jmug.me/jmug/compiler-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
}