Error actions and error recovery

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


Hello!

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!

Thanks,
Christer



More information about the ragel-users mailing list