<div dir="ltr"><div><div><div><div><div><div><div><div>Friendly greetings !<br><br></div>I'm trying to use ragel with ruby as target but i have a problem that drive me crazy since many days.<br><br></div>Here is the code : <a href="https://gist.github.com/ker2x/a86b1f6fc0de6a9c1f2e">https://gist.github.com/ker2x/a86b1f6fc0de6a9c1f2e</a><br>
<br></div>and the output<br><br>[{: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"}]<br>
<br></div>there is an extra char everywhere.<br></div>Somehow, with this simplified version, it works when catching "print".<br></div>On a bigger version (that recognize string) i have to do "print " (with an extra space)<br>
<br></div>What's happening ?<br>Thank you very much.<br><br></div>(i asked on irc for a few days but it's idle)<br><div><div><div><div><div><div><div><div><br><div><br clear="all"><div><br>-- <br><div dir="ltr">Laurent "ker2x" Laborde<br>
Bigdata hacker @ Ebuzzing<br></div>
</div></div></div></div></div></div></div></div></div></div></div>