Praveen,

   Comments are parsed into an ANTLR "hidden" channel. Check the ANTLR documentation about how to capture tokens for a hidden channel if you want to pursue that path. 

   My suggestion for you is to use an annotation to store your documentation instead. This allows you to easily access it from code:

rule X
   @doc( "This is the documentation for rule X..." )
...

   Edson

On Fri, Nov 4, 2011 at 7:55 AM, Praveen <praveen.sanju@gmail.com> wrote:
Hi,

The system we are building requires "rulenames" and "rule
description(comments)" to be displayed in the UI(built using JQuery).
I am using DrlParser to convert the drl(generated using Guvnor) to XML so
that it could be used to display in the UI.
However, the comments written in drl are not visible in the converted XML.
Please let me know how to parse "comments" using DrlParser so that I can use
it to display as "rule description".

Thanks & Regards,
Praveen.

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-parse-comments-in-drl-file-using-DrlParser-tp3479895p3479895.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com