You need to declare “const char *eof”, or drop the “const” like you declared p, pe, and cs. Have a look @ chap 5.1 of the docs.
You might also want to fiddle with your specification of your FSM. The “eof” was implicitly generated by Ragel because you did not really have a terminal way out of the machine. If you add s.th. like a trailing ‘;’ (main := number+ ';'; ), or whatever, Ragel no longer tests against “eof” and you no longer have to declare it. jg
_______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
