Class: Rubycc::Front::AST::IntLit

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

Integer literal. value is a Ruby Integer and type its Rubycc::Type, fixed by the parser from the constant's base, suffix and magnitude (6.4.4.1) — int/long or their unsigned forms; a character constant is int.

Instance Attribute Summary collapse

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



12
13
14
# File 'lib/rubycc/front/ast.rb', line 12

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



12
13
14
# File 'lib/rubycc/front/ast.rb', line 12

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



12
13
14
# File 'lib/rubycc/front/ast.rb', line 12

def value
  @value
end