How to add a grammar and a parser ?

32 views
Skip to first unread message

samuel....@gmail.com

unread,
Apr 25, 2017, 10:38:59 AM4/25/17
to SonarQube
Hi guys,

I've created a plugin from the example, and i've my grammar and my parser done for a new langage.

What should i do to add the grammar and the parser to the plugin ?


Thanks for your help.☺

Pierre-Yves Nicolas

unread,
Apr 27, 2017, 4:29:43 AM4/27/17
to samuel....@gmail.com, SonarQube
Hi,

Why did you start a new SonarQube language plugin? Which feature do you want to add to your plugin?
There's no SonarQube API which is directly related to a parser.
As mentioned in the documentation you found, SonarQube API can be fed with:
  • issues against coding rules
  • metrics
  • coverage
  • syntax highlighting
  • symbol highlighting
  • CPD (Copy-Paste Detector) tokens
  • (...maybe something else which I forgot)
Don't try to "add the grammar and the parser to the plugin".
Try to implement one of the above features based on your parser.
It will be easier to help you when you have more precise questions.

Good luck!

Pierre-Yves

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/4a19e83b-6909-4310-86c0-1f98782f5660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages