Module: CDDLGRAMMAR::Type222

Defined in:
lib/parser/cddlgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



1007
1008
1009
1010
# File 'lib/parser/cddlgrammar.rb', line 1007

def ast
  ["prim", elements[1].text_value.to_i,
   *(el = elements[2].elements) ? [el[1].text_value.to_i] : []]
end