16 lines
324 B
Go
16 lines
324 B
Go
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
|
|
}
|