[ragel-users] Detecting failure state

thurston at complang.org thurston at complang.org
Tue Jan 25 02:34:39 UTC 2011


Hi Peter, there is no automatic method of obtaining this information. Search the mailing list for 'mapping' and 'state' to learn why. You have to use actions for this.

Adrian
------Original Message------
From: Peter Gervais
Sender: ragel-users-bounces at complang.org
To: ragel-users at complang.org
ReplyTo: ragel-users at complang.org
Subject: [ragel-users] Detecting failure state
Sent: Jan 24, 2011 11:51 AM

Adrien,
   I need to know in which state of the state machine where a parsing error has occurred. Once an error has occurred, i need to be able to map the failure state number to the actual rule where the failure has occurred i.e. its not much use printing out failure in state X. It would much better if we could print out the text of the exact rule where the failure happened.  
1) Is there support for this at this time? 
2) What is the best way to do this ?
3) is there a place i can pick up the latest source for ragel which includes any patches you may have made without having to patch it myself? i.e. a complete tar bundle of the very latest work?

Peter Gervais
17621 Island Rd, 
RR#1 Martintown, Ontario
Bus: 1-613-938-6549
Cell: 1-613-864-7370
pgervais at xplornet.com




_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users

_______________________________________________
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