help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 1.50 question: Can it support Auto-Complete?


From: Paul Eggert
Subject: Re: Bison 1.50 question: Can it support Auto-Complete?
Date: Fri, 18 Oct 2002 18:06:59 -0700 (PDT)

> Date: Fri, 18 Oct 2002 11:56:14 -1000
> From: Chris Hundhausen <address@hidden>
> 
> I'm trying to build "auto-complete" functionality into an interactive
> development environment. The language I'm parsing is written in
> flex/bison (probably v. 1.25). In other words, for incomplete sentences
> in my language, I want to generate a complete list of valid next tokens.
> Unfortunately, setting the VERBOSE flag in Bison doesn't do the job. I
> do, indeed, receive *some* valid completions, but not all. As far as I
> can tell, if multiple rules are tried, the verbose error message reports
> only the next possible tokens in the _last_ rule attempted; possible
> completions from previous rules are not reported.
> 
> So, I'm wondering if --report=THINGS does anything differently.  Is
> 'itemset' a list of all next possible tokens?

Sorry, I'm not the right guy to ask about this (I could read the code,
but then that wouldn't be more efficient than your doing it).

I'll CC: this to help-bison to see whether others can suggest more.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]