Parse and create an AST for a new language with SSLR

Hi,

Indeed, using SSLR makes it rather easy to have a parser once you have the grammar. According to the doc you mention:

a parser simply parses an input based on your grammar to yield a parse tree

As you started having a look at the Python analyzer, I suppose that you could check PythonSquidSensor and PythonScanner. That should help you understand how you can use the parser to feed metrics and issues to the SonarQube API.

Does that help you?

2 Likes