Re: SQL autocomplete project

Hans-Peter Diettrich <>
Thu, 08 Oct 2009 01:15:53 +0200

          From comp.compilers

Related articles
SQL autocomplete project (console kid) (2009-10-06)
Re: SQL autocomplete project (Hans-Peter Diettrich) (2009-10-08)
Re: SQL autocomplete project (George Neuner) (2009-10-08)
Re: SQL autocomplete project (John Millaway) (2009-10-08)
Re: SQL autocomplete project (Chris F Clark) (2009-10-10)
| List of all articles for this month |

From: Hans-Peter Diettrich <>
Newsgroups: comp.compilers
Date: Thu, 08 Oct 2009 01:15:53 +0200
Organization: Compilers Central
References: 09-10-005
Keywords: SQL, parse
Posted-Date: 09 Oct 2009 17:43:16 EDT

console kid schrieb:

> For example after if the users enters like this
>>> SELECT ide
> it will show : Table Name
> I am confused on this entirely , please give me a suggestion.

A first question: do you have given an special language/parser type?

When you build an LL(1) parser, you can construct the Follow set of
every element of a rule. Then, when the parser is presented wrong or
incomplete input, it would output "expecting one of ...", where the ...
list of possible tokens represents the Follow set of the last recognized
token. Now it's up to you to assign or translate the token names into
informative text, understandable to the user.

Good luck :-)


Post a followup to this message

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