PyParsing contextual suggestions?

Discussion in 'Python' started by Tim Chase, Dec 12, 2012.

  1. Tim Chase

    Tim Chase Guest

    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
    Tim Chase, Dec 12, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Developer Relations

    Blog Musing: "contextual usage patterns"

    Developer Relations, Jan 6, 2004, in forum: Java
    Replies:
    1
    Views:
    401
    Andrew Thompson
    Jan 7, 2004
  2. Gerry
    Replies:
    2
    Views:
    824
    Gerry
    Feb 25, 2005
  3. Squid Seven
    Replies:
    2
    Views:
    4,643
    Squid Seven
    Apr 6, 2005
  4. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    Inserting a contextual JS function in a DataGrid LinkButton

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Jun 18, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    380
    Walter Wang [MSFT]
    Jun 19, 2006
  5. Daniel Pitts
    Replies:
    4
    Views:
    329
    Roland Pibinger
    Oct 13, 2007
Loading...

Share This Page