<div><br></div> Praveen,<div><br></div><div> 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. </div>
<div><br></div><div> My suggestion for you is to use an annotation to store your documentation instead. This allows you to easily access it from code:</div><div><br></div><div>rule X</div><div> @doc( "This is the documentation for rule X..." )</div>
<div>...</div><div><br></div><div> Edson<br><br><div class="gmail_quote">On Fri, Nov 4, 2011 at 7:55 AM, Praveen <span dir="ltr"><<a href="mailto:praveen.sanju@gmail.com">praveen.sanju@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
The system we are building requires "rulenames" and "rule<br>
description(comments)" to be displayed in the UI(built using JQuery).<br>
I am using DrlParser to convert the drl(generated using Guvnor) to XML so<br>
that it could be used to display in the UI.<br>
However, the comments written in drl are not visible in the converted XML.<br>
Please let me know how to parse "comments" using DrlParser so that I can use<br>
it to display as "rule description".<br>
<br>
Thanks & Regards,<br>
<span class="HOEnZb"><font color="#888888">Praveen.<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-parse-comments-in-drl-file-using-DrlParser-tp3479895p3479895.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-parse-comments-in-drl-file-using-DrlParser-tp3479895p3479895.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>