Nipuna Marcus
1 min readJun 26, 2019

--

Yes, we use ANTLR 4 to implement Ballerina Grammer…

Yes when we need to analyze the tokens in a context and find the scope that these tokens are in we use tokenStream but most of the cases we use the AST(abstract syntax tree) that we generated after parsing a source file to give completions, definitions, references and hover.

--

--

Nipuna Marcus
Nipuna Marcus

Written by Nipuna Marcus

Software Engineer at Zuhlke, Ex Tech Lead at WSO2, Author of “Language Server Protocol and Implementation”

No responses yet