Re: Preview in grammar

Hans-Peter Diettrich <DrDiettrich@compuserve.de>
9 May 2006 00:52:22 -0400

          From comp.compilers

Related articles
Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-03)
Re: Preview in grammar marcov@stack.nl (Marco van de Voort) (2006-05-04)
Re: Preview in grammar haberg@math.su.se (2006-05-04)
Re: Preview in grammar pbmann@gmail.com (2006-05-09)
Re: Preview in grammar haberg@math.su.se (2006-05-09)
Re: Preview in grammar DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-05-09)
Re: Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-09)
Re: Preview in grammar cfc@shell01.TheWorld.com (Chris F Clark) (2006-05-11)
Re: Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-11)
Re: Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-11)
Re: Preview in grammar Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2006-05-12)
Re: Preview in grammar cfc@shell01.TheWorld.com (Chris F Clark) (2006-05-12)
[4 later articles]
| List of all articles for this month |
From: Hans-Peter Diettrich <DrDiettrich@compuserve.de>
Newsgroups: comp.compilers
Date: 9 May 2006 00:52:22 -0400
Organization: Compilers Central
References: 06-05-011
Keywords: parse
Posted-Date: 09 May 2006 00:52:22 EDT

Ulrich Frank wrote:


> I need a preview which token comes next in an uncomplete input string.
> For example when you type "select abc" the preview would be "from". Or
> in "select abc from def where abc" the preview would be "<, <=, >, >=,
> equals".


Do you mean the next token from the input stream, or the set of
acceptable tokens at the current parser state?


>
> I already looked at
> - ANTLR (LL) which does not provide this funcionality
> - JavaCC (LL) provides it
> - JavaCUP (LALR) does not provide
> - SableCC (LALR) provides it


Have a look at CoCo/R. It's "only" a LL(1) parser generator, but it
might be appropriate to answer your questions.


DoDi


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.