Re: [rules-dev] getNestedConstraintPrefixLenght method in DRL6Parser.java

2014-01-31 Thread Claudio Jesús Sánchez Casanueva
This is how i would translate 'nestedConstraint()' to a regular expression ID? ( (DOT | HASH) ID)* DOT LEFT_PARENT constraints RIGHT_PARENT And this is the description in his header "( ID ( DOT | HASH ) )* ID DOT LEFT_PAREN constraints RIGHT_PAREN" The difference is that 'nestedConstrain

Re: [rules-dev] getNestedConstraintPrefixLenght method in DRL6Parser.java

2014-01-30 Thread Edson Tirelli
Claudio, I am not sure I understand your question? 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? Edson On Thu, Jan 30, 2014 at 11:16 AM, Claudio Jesús Sánchez Ca

[rules-dev] getNestedConstraintPrefixLenght method in DRL6Parser.java

2014-01-30 Thread Claudio Jesús Sánchez Casanueva
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. The header of 'nestedConstr