17 lines
327 B
Go
17 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
|
||
|
|
}
|