Class: Rsec::PInt64
Overview
64-bit int parser
Instance Attribute Summary
Attributes inherited from Binary
Attributes included from Parser
Instance Method Summary collapse
-
#initialize(sign_strategy, base) ⇒ PInt64
constructor
A new instance of PInt64.
Methods inherited from PInt
Methods included from Prim
Methods included from Parser
#&, #*, #<<, #>>, #^, #cached, #eof, #fail, #inspect, #join, #map, #maybe, #parse, #parse!, #star, #|
Constructor Details
#initialize(sign_strategy, base) ⇒ PInt64
Returns a new instance of PInt64.
86 87 88 89 90 |
# File 'lib/rsec/parsers/prim.rb', line 86 def initialize sign_strategy, base @base = base self.left = int_pattern sign_strategy, base self.right = (-(1<<63))..((1<<63)-1) end |