int.go 404 B

12345678910111213141516171819
  1. package ast
  2. import "code.osinet.fr/fgm/waiig15/token"
  3. // IntegerLiteral fulfills ast.Expression.
  4. type IntegerLiteral struct {
  5. Token token.Token
  6. Value int64
  7. }
  8. func (il *IntegerLiteral) expressionNode() {}
  9. // TokenLiteral satisfies the Node interface.
  10. func (il *IntegerLiteral) TokenLiteral() string {
  11. return il.Token.Literal
  12. }
  13. func (il *IntegerLiteral) String() string {
  14. return il.Token.Literal
  15. }