<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body 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 class="Section1">&nbsp;</div>
<div>
<p class="MsoNormal" style="margin-top: 6.0pt; text-align: justify;"><span style="font-size: 8.0pt; color: #7f7f7f;"><!-- o ignored --></span></p>
</div>
</div>
</body></html>