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/>