[Mono-dev] csharp tab completion.

Miguel de Icaza miguel at novell.com
Sun Mar 22 23:04:27 EDT 2009


Hello,

>  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
sequence:

	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

Miguel.



More information about the Mono-devel-list mailing list