<div dir="ltr"><br><div> Claudio,</div><div><br></div><div> I am not sure I understand your question? </div><div><br></div><div> I was looking into the method, and, although I would implement it in a different way myself, the current implementation looks correct to me... am I missing something?</div>
<div><br></div><div> Edson</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 11:16 AM, Claudio Jesús Sánchez Casanueva <span dir="ltr"><<a href="mailto:claudio.sanchez@andanta.es" target="_blank">claudio.sanchez@andanta.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:Verdana,Geneva,sans-serif">
<p>I am studying the drools code and i have seen strange the method 'getNestedConstraintPrefixLenght()' in DRL6Parser.java: If i translate that function to a regular expression in antlr lexer, it would be "ID? ( (DOT | HASH) ID)* DOT LEFT_PARENT", which have few sense.</p>
<p>The header of 'nestedConstraint()' describes the expected the expected result as "( ID ( DOT | HASH ) )* ID DOT LEFT_PAREN constraints RIGHT_PAREN" : it internally calls to 'getNestedConstraintPrefixLenght()', consumes the numbers of items retuned by this, calls to 'constrains()' and cosumes a RIGHT_TOKEN.<br>
For me the expected results described in the header of 'nestedConstraint()' do not correspond with the real results.</p>
<div>
<div> </div>
<div>
<p class="MsoNormal" style="margin-top:6.0pt;text-align:justify"><span style="font-size:8.0pt;color:#7f7f7f"></span></p>
</div>
</div>
</div>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"> Edson Tirelli<br>
Principal Software Engineer <div> Red Hat Business Systems and Intelligence Group<br><br></div></div>
</div>