Help Rewriting/Refactoring/Rethinking Parsing Algorythm

Terry Reedy tjreedy at udel.edu
Sun Mar 18 21:46:51 EST 2001


...
> print "what's wrong with %s?" % first name     ->     print "what's
> wrong with %s?" % firstName
...
> I've gotten all but the last case to work.  But once I started trying to
...
You need to add 'quote' or sum such to your list of special words.  You
will need a variable 'inquote' to keep track of when you are in quotes (and
should therefor turn off all other special processing).
To do this without making code spaghetti, you might jump to another
within-quote function.

There have been  versions of WordPerfect bundled with Dragon N. S.  This
might give you more ideas on how to direct text editing with DNS.







More information about the Python-list mailing list