Module: JPTGRAMMAR::Hexchar2

Defined in:
lib/parser/jptgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



1020
1021
1022
1023
# File 'lib/parser/jptgrammar.rb', line 1020

def ast
  ((elements[0].text_value.to_i(16) & 0x3FF) << 10) +
   (elements[3].text_value.to_i(16) & 0x3FF) + 0x10000
end