Module: JPTGRAMMAR::BracketedSelection2

Defined in:
lib/parser/jptgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



4050
4051
4052
4053
4054
4055
4056
4057
# File 'lib/parser/jptgrammar.rb', line 4050

def ast
  first_ast = elements[2].ast
  if elements[3].text_value == ''
    first_ast
  else
    ["u", first_ast, *elements[3].elements.map{|el| el.elements[3].ast}]
  end
end