[rules-dev] RFC: declaration syntax

Edson Tirelli ed.tirelli at gmail.com
Wed Jul 27 09:47:33 EDT 2011


   Hehehe, always good to have your help. As you will see the skip one and
skip all tokens strategies are implemented. The "inject a token" and try
again is not, as that is a lot more complicated to do it and maintain
manually.

   Edson

2011/7/27 Wolfgang Laun <wolfgang.laun at gmail.com>

> On 27 July 2011 15:34, Edson Tirelli <ed.tirelli at gmail.com> wrote:
>
>>
>>    Just to explain how the parser recovers from errors, it tries to skip a
>> token that fail to match the construct being parsed. If that still fails, it
>> will skip all tokens until it finds the start of a top level construct (i.e.
>> a statement like a rule, query, declare, etc) and resynch from there. If you
>> have too many different top level keywords, it increases the probability
>> that there will be a keyword clash and it will fail to resynch, resulting in
>> cobolish errors for the rest of the file... :)
>>
>
> I think I'll read the parser once more, with an eye out for recovery ;-)
> -W
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>


-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110727/de329ec5/attachment.html 


More information about the rules-dev mailing list