Laurent Laborde
2014-05-12 14:10:04 UTC
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)
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.complang.org/pipermail/ragel-users/attachments/20140512/69cbf601/attachment.html>
Laurent "ker2x" Laborde
Bigdata hacker @ Ebuzzing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.complang.org/pipermail/ragel-users/attachments/20140512/69cbf601/attachment.html>