[ragel-users] Parsing PokerHand-History file (kind of log filewithactions)

ragel-user at jgoettgens.de ragel-user at jgoettgens.de
Mon Jul 25 15:49:00 UTC 2011


If this is so, http://pastebin.com/WjDP1xmj is not representative for your computer language. Since there is only a table, the tokenizer takes apart the lexical elements and since most of the lexical elements are fixed, gperf is perfect for that job. I don’t see at what point you need to deal with many alternatives. 

Fill up the various possible actions with some code && you’ll see where your FSM got stuck , and/or generate graphviz output and follow the states by hand for a given input string. In case line 23 of your sample input data should be (possibly partially) matched by your “raiseaction” I’d start debugging by looking at what the “any” machine really matches 

jg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110725/8f0768c5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlEmoticon-smile[1].png
Type: image/png
Size: 1041 bytes
Desc: not available
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110725/8f0768c5/attachment-0001.png>
-------------- 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