Related articles |
---|
SQL autocomplete project sandundhammikaperera@gmail.com (console kid) (2009-10-06) |
Re: SQL autocomplete project DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-10-08) |
Re: SQL autocomplete project gneuner2@comcast.net (George Neuner) (2009-10-08) |
Re: SQL autocomplete project johnmillaway@yahoo.com (John Millaway) (2009-10-08) |
Re: SQL autocomplete project cfc@shell01.TheWorld.com (Chris F Clark) (2009-10-10) |
From: | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
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 :-)
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.