Skip to content
nbros edited this page Sep 13, 2010 · 3 revisions
  • lexer creates “closing” tokens after completion point
  • create a completion token at completion point, and a completion AST node (identifier)
  • compute context, and use the completion AST node’s context for completion

see CDT completion implementation

Or more simply, without modifying the lexer, accept EOF tokens at places where a closing delimiter is expected, and where an identifier can be completed.

Clone this wiki locally