comparison sqlpyPlus.py @ 98:2619e81c5772

after WV trip
author catherine@cordelia
date Wed, 28 May 2008 09:14:43 -0400
parents 5e274ecfd679
children 1e69f3a26216
comparison
equal deleted inserted replaced
97:9c5371b5edf4 98:2619e81c5772
322 else: 322 else:
323 if sqlcommand[0]: 323 if sqlcommand[0]:
324 itms.append(sqlcommand[0]) 324 itms.append(sqlcommand[0])
325 return itms 325 return itms
326 326
327 pipeSeparator = Parser(pyparsing.SkipTo((pyparsing.Literal('|') ^ pyparsing.StringEnd()), include=True), retainSeparator=False)
328 bindScanner = Parser(pyparsing.Literal(':') + pyparsing.Word( pyparsing.alphanums + "_$#" )) 327 bindScanner = Parser(pyparsing.Literal(':') + pyparsing.Word( pyparsing.alphanums + "_$#" ))
329 328
330 def findBinds(target, existingBinds, givenBindVars = {}): 329 def findBinds(target, existingBinds, givenBindVars = {}):
331 result = givenBindVars 330 result = givenBindVars
332 for finding, startat, endat in bindScanner.scanner.scanString(target): 331 for finding, startat, endat in bindScanner.scanner.scanString(target):