Class: Rubycc::Front::AST::FloatLit
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::FloatLit
- Defined in:
- lib/rubycc/front/ast.rb
Overview
Floating-point literal. value is a Ruby Float and type its
Rubycc::Type — Type::Float for an f/F-suffixed constant, Type::Double
otherwise (a plain or l/L-suffixed one) — fixed by the parser from the
constant's suffix (6.4.4.2).
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token
18 19 20 |
# File 'lib/rubycc/front/ast.rb', line 18 def token @token end |
#type ⇒ Object (readonly)
Returns the value of attribute type
18 19 20 |
# File 'lib/rubycc/front/ast.rb', line 18 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
18 19 20 |
# File 'lib/rubycc/front/ast.rb', line 18 def value @value end |