[Mono-dev] csharp tab completion.
Miguel de Icaza
miguel at novell.com
Sun Mar 22 23:04:27 EDT 2009
> Secondly, instead of rewriting token in
> tokenizer it can be easier to just handle the token specially in the
> parser at few places where you want to support completion.
I am not sure that I understand the suggested approach here.
The parser actually now works with a partial input, it just happens to
be that instead of returning EOF at the end it returns the following
GENERATE_COMPLETION <- This must be handled individually by
each completion-aware production.
COMPLETE_COMPLETION <- An infinite stream of these to help yacc
produce a valid AST. Handling for these
are required on all productions that
might participate in a partial tree,
and this will require an ongoing effort
to make it perfect.
EOF <- This merely completes the parsing process
More information about the Mono-devel-list