[ragel-users] Unexpected final state action call

Andrey Vityuk andrey.vityuk at gmail.com
Sat Apr 9 05:48:40 UTC 2011


Hi,

I write some sample rules:

content = any+ -- '||';
main := content %{ System.out.println("Matched content. fpc = "  + fpc); } .
'||' . '\n'?;

For input: "abc||" action called 2 times: for each pipe char:
Matched content. fpc = 3
Matched content. fpc = 4

Is it correct behaviour? How to workaround it?

Thanks,
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110409/9c8866ce/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