[antlr-interest] automated completion - choosing matching productions and the next token

Doucette, Charles cdoucette at vaultus.com
Fri Jun 13 15:57:43 PDT 2008


I am working on an editor for a language.
I have a grammar definition for a parser that builds a custom AST tree (not a standard Antlr AST tree).
The editor already uses the parser to  automatically flag syntax errors.

Is there any way to automatically determine
a) the current production
b) the current token based on the production
c) semantically choose the appropriate completions based on a) & b) above

The Eclipse Java editor and JDT do this all already, so I know the technology exists.
What I don't know is if it is based on fully automated parser technology (like from Antlr) or if it is based on simple heuristics
(like looking for an identifier after a "." or "=").

Thanks,
Chuck

________________________________

Charles E. Doucette *  617-399-1122 *  Vaultus Mobile Technologies, 263 Summer St., Boston, MA 02210 *  http://www.vaultus.com<http://www.vaultus.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080613/7032d575/attachment.html 


More information about the antlr-interest mailing list