# File lib/squish.rb, line 343 def where_rpar (text) # puts "Does text '#{text} match ')'... \n" if text =~ /^\)\s*(.*)\s*/ nextdata = $1 # puts "rpar: next prod: where_lpar #{$1} \n" loginfo('where_rpar', ' ) ', nextdata ) if (nextdata =~ /\S/ ) clause = "#{@lastsub} -- #{@lastpred} --> #{@lastobj}\n" qt = [ @lastpred, @lastsub, @lastobj ] self.clauses.push( qt ) ## puts ("DEBUG: #{clauses.inspect} \n") ## TODO: Store this in SquishQuery return where_lpar( nextdata ) end puts "[finished with the entire WHERE clause]\n\n" return true # we're done with this where # should flush temporary state, store goodstuff etc # Note: qnames need expanding later end puts "Error: Expected ')'" return false; end