Class: BinaryParser::Expression::Token

Inherits:
BinaryParser::Expression show all
Defined in:
lib/binary_parser/general_class/expression.rb

Direct Known Subclasses

Immediate, Operator, Variable

Defined Under Namespace

Classes: Immediate, Operator, Variable

Instance Method Summary collapse

Methods inherited from BinaryParser::Expression

#%, #*, #+, #-, #/, #binary_op, #coerce, control_var, #control_var?, #eval, immediate, #immediate?, length_var, #length_var?, nextbits_var, #nextbits_var?, #to_exp, value_var, #value_var?, #variable_tokens

Constructor Details

#initializeToken

Returns a new instance of Token.



117
118
119
# File 'lib/binary_parser/general_class/expression.rb', line 117

def initialize
  #override but do nothing
end

Instance Method Details

#to_rpnObject



121
122
123
# File 'lib/binary_parser/general_class/expression.rb', line 121

def to_rpn
  @rpn ||= RPN.new(self)
end