[antlr-interest] Auto-complete using ANTLR v3
Eric Elliott
eric.elliott at gmail.com
Thu Apr 19 08:39:22 PDT 2007
I'm trying to implement a relatively simple auto-complete using ANTLR v3.
Can anyone point me to examples or give a general overview of what is
involved in getting Antlr to give back what tokens are valid at a
particular point in an input?
As a simple example, say I have:
expr: val ('+' val)*;
val: '1' | ( 'Sin(' val ')' ) | ( ' Cos(' val ')');
If the user has typed 1, I should be able to present '+'.
if the user has typed 1 +, I should be able to present '1', 'Sin(', or 'Cos('.
Thanks for any input.
--
Eric Elliott
eric.elliott at gmail.com
More information about the antlr-interest
mailing list