[ragel-users] Unexpected final state action call
Andrey Vityuk
andrey.vityuk at gmail.com
Sat Apr 9 09:40:10 UTC 2011
Actually I found solution:
action start { System.out.println("start. fpc = " + fpc); }
action end { System.out.println("end. fpc = " + fpc); }
content = (any+ -- '||') >start ;
main := content . '||' @end . '\n'?;
But the problem is my original rules are more complex:
content = '||' . (any+ -- '||') >start ;
main := content+ . '||' @end . '\n'?;
For input: "||abc||efg||" they work fine:
start. fpc = 2
end. fpc = 6
start. fpc = 7
end. fpc = 11
start. fpc = 12
Consumed all: true
But for input: "||abc|||" I am getting unxpected calls:
start. fpc = 2
end. fpc = 6
start. fpc = 7
end. fpc = 7
start. fpc = 8
Consumed all: true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110409/0e43ae92/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