Dear all,
I am facing a new problem when doing a HOT. I have a source rule that specifies something like this:
rule example
{
from
s: MM_Exp!MC1
(
(
(s.name='My1' and s.id='My2')
or
(s.name='My2' and s.id='My2')
)
and
(
(s.name='My3' and s.id='My4')
or
(s.name='My4' and s.id='My5')
)
...
}
the target rule comes out as follows after unparsing the result of the HOT:
rule example
{
from
s: MM_Exp!MC1
(
s.name='My1' and s.id='My2'
or
s.name='My2' and s.id='My2'
and
s.name='My3' and s.id='My4'
or
s.name='My4' and s.id='My5'
)
...
}
So in other words, it looks like I lose the parenthesis when running the HOT which looks very unsafe to me. Is this something I noticed because I was considering special cases where parenthesis were not useful or is it something documented with a way to workaround it?
Thanks a lot for your help,
Etienne.
[Updated on: Tue, 24 September 2013 14:08] by Moderator