Class: Treetop::Runtime::SyntaxNode

Inherits:
Object
  • Object
show all
Defined in:
lib/parser/edn-util.rb

Instance Method Summary collapse

Instance Method Details

#astObject



9
10
11
# File 'lib/parser/edn-util.rb', line 9

def ast
  fail "undefined_ast #{inspect}"
end

#ast1Object

devhack



12
13
14
# File 'lib/parser/edn-util.rb', line 12

def ast1                      # devhack
  "#{inspect[10..20]}--#{text_value[0..15]}"
end

#hex_valueObject



15
16
17
# File 'lib/parser/edn-util.rb', line 15

def hex_value
  text_value.to_i(16)
end