Error actions and error recovery

Christer Sandberg chr... at
Tue Sep 4 07:44:50 UTC 2007


I'm trying to understand and use error actions and error recovery and
was hoping that someone here could help me out.

Let's say I have this in my machine:

pr = alnum+ ';';
se = '{' pr* '}';
main := se+;

What I would like to accomplish is that if there's an error in pr I
would like to skip to the next ';' or '}'. I there's an error finding
the first '{', I would like to skip to the next '}'.

If someone could post some code snippets with examples of this I would
be most greatful!


More information about the ragel-users mailing list