module CDDLGRAMMAR::Type219

Public Instance Methods

ast() click to toggle source
# File lib/parser/cddlgrammar.rb, line 996
def ast
          ["prim", elements[1].text_value.to_i,
           *(el = elements[2].elements) ? [el[1].text_value.to_i] : []]
        end