[ragel-users] space bug space bug space bug

Laurent Laborde kerdezixe at gmail.com
Mon May 12 14:10:04 UTC 2014


Friendly greetings !

I'm trying to use ragel with ruby as target but i have a problem that drive
me crazy since many days.

Here is the code : https://gist.github.com/ker2x/a86b1f6fc0de6a9c1f2e

and the output

[{:type=>:NUMBER, :name=>"+1 "}, {:type=>:SPACE, :name=>" 2"},
{:type=>:NUMBER, :name=>"2 "}, {:type=>:SPACE, :name=>" -"},
{:type=>:NUMBER, :name=>"-3 "}, {:type=>:SPACE, :name=>" 4"},
{:type=>:NUMBER, :name=>"4 "}, {:type=>:SPACE, :name=>" p"}]

there is an extra char everywhere.
Somehow, with this simplified version, it works when catching "print".
On a bigger version (that recognize string) i have to do "print " (with an
extra space)

What's happening ?
Thank you very much.

(i asked on irc for a few days but it's idle)



-- 
Laurent "ker2x" Laborde
Bigdata hacker @ Ebuzzing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20140512/69cbf601/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