home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,747 of 2,753   
   Hans-Peter Diettrich to console kid   
   Re: SQL autocomplete project   
   08 Oct 09 01:15:53   
   
   From: DrDiettrich1@aol.com   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca