two state machines in single source - I cannot believe

mitchell mforal.n... at gmail.com
Sat Jun 7 17:41:28 UTC 2008


Hi,

> Uncommenting the line in action endpt1:
>                 //p--;
>
> FSM1 machine behaves as expected ("OK pt2" is printed")..could you
> help to find my mistake?

You're setting p to be equal to FN which is the starting position of
the character array you declared. If you decrement p, you cannot read
that point in memory as it's before your allocated memory for FN.

Take care,



More information about the ragel-users mailing list