To put my problem into context I have 100,000 people with around 200 Facts each. In one of my queries I only want Facts that occurred between x and y dates for each person, which I then perform some arithmetic on.
My initial implementation of the listener calculated the expression, followed by the arithmetic for each fact. If the expression turned out true then I propagated the arithmetic.
My current attempt is using a a flag so generated from the the expression, so that when walking the arithmetic part of the tree nothing is calculated.
This has produced some improvement but I'm wondering if I am missing something and I should be able to do this at the grammar level, and prevent the walking of the arithmetic section if the expression is false.
Any help would be greatly appreciated... Hopefully I have not gone down the wrong road !
Simon
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.