Module: JPTGRAMMAR::LogicalAndExpr2

Defined in:
lib/parser/jptgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



2196
2197
2198
2199
2200
2201
2202
# File 'lib/parser/jptgrammar.rb', line 2196

def ast
  if elements[1].text_value == ''
    elements[0].ast
  else
    ["and", elements[0].ast, *elements[1].elements.map{|el| el.elements[3].ast}]
  end
end