comparison cmd2.py @ 313:e9f9dc712651

must puzzle out parsing of quoted strings
author catherine@Drou
date Tue, 09 Feb 2010 21:15:56 -0500
parents 466eaec2c076
children 0687bb650118
comparison
equal deleted inserted replaced
312:466eaec2c076 313:e9f9dc712651
447 r''' 447 r'''
448 >>> c = Cmd() 448 >>> c = Cmd()
449 >>> c.multilineCommands = ['multiline'] 449 >>> c.multilineCommands = ['multiline']
450 >>> c.case_insensitive = True 450 >>> c.case_insensitive = True
451 >>> c._init_parser() 451 >>> c._init_parser()
452 >>> print (c.parser.parseString('').dump())
453 []
452 >>> print (c.parser.parseString('').dump()) 454 >>> print (c.parser.parseString('').dump())
453 [] 455 []
454 >>> print (c.parser.parseString('/* empty command */').dump()) 456 >>> print (c.parser.parseString('/* empty command */').dump())
455 [] 457 []
456 >>> print (c.parser.parseString('plainword').dump()) 458 >>> print (c.parser.parseString('plainword').dump())