[ragel-users] Problems with eof

ragel-user at jgoettgens.de ragel-user at jgoettgens.de
Fri Jul 22 11:46:11 UTC 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110722/271b9100/attachment-0001.html>
-------------- next part --------------
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users


More information about the ragel-users mailing list