Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34681 > unrolled thread

PyParsing contextual suggestions?

Started byTim Chase <python.list@tim.thechases.com>
First post2012-12-11 22:15 -0600
Last post2012-12-11 22:15 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  PyParsing contextual suggestions? Tim Chase <python.list@tim.thechases.com> - 2012-12-11 22:15 -0600

#34681 — PyParsing contextual suggestions?

FromTim Chase <python.list@tim.thechases.com>
Date2012-12-11 22:15 -0600
SubjectPyParsing contextual suggestions?
Message-ID<mailman.768.1355285674.29569.python-list@python.org>
I've just started tinkering around with PyParsing and have unable to
come up with an answer to the following without deep diving into the
code.  Is there a way to do a partial parsing and then get the list
of possible things that could appear at the terminus of the parsing?
 My hope is to implement context-aware suggestions in a
readline.py/cmd.py application.  So I might have a grammar that
knows about filenames, and could then appropriately suggest
file-names at the given point in a parsing of the command.

Any hints on where I should read up?

Thanks,

-tkc

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web