Class: Treetop::Runtime::SyntaxNode

Inherits:
Object
  • Object
show all
Defined in:
lib/oracle-sql-parser/treetop_ext.rb

Instance Method Summary collapse

Instance Method Details

#astObject



3
4
5
6
7
8
# File 'lib/oracle-sql-parser/treetop_ext.rb', line 3

def ast
  if((elements == nil || elements.empty?) && text_value == "")
    return nil
  end
  OracleSqlParser::Ast::Base.new(text_value)
end