Class: Rubycc::Front::LexemeReader::Result
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::Front::LexemeReader::Result
- Defined in:
- lib/rubycc/front/lexeme_reader.rb
Overview
A decoded lexeme. type is :num, :float, :string, :ident or :keyword.
value is the folded Integer/Float, the escape-resolved ASCII-8BIT bytes
of a string, or the identifier text. base/suffix accompany an integer
:num and suffix a :float, matching Front::Token's numeric fields.
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base
32 33 34 |
# File 'lib/rubycc/front/lexeme_reader.rb', line 32 def base @base end |
#suffix ⇒ Object
Returns the value of attribute suffix
32 33 34 |
# File 'lib/rubycc/front/lexeme_reader.rb', line 32 def suffix @suffix end |
#type ⇒ Object
Returns the value of attribute type
32 33 34 |
# File 'lib/rubycc/front/lexeme_reader.rb', line 32 def type @type end |
#value ⇒ Object
Returns the value of attribute value
32 33 34 |
# File 'lib/rubycc/front/lexeme_reader.rb', line 32 def value @value end |