<div dir="ltr">Hello.<div><br></div><div>I can't reproduce this case:</div><div><br></div><div><div>$ ./ragel-6.8/ragel/ragel -v</div><div>Ragel State Machine Compiler version 6.8 Feb 2013</div><div>Copyright (c) 2001-2009 by Adrian Thurston</div>
<div>$ ./ragel-6.8/ragel/ragel -Z -G2 main.rl</div><div>$ go version</div><div>go version go1.1.2 linux/amd64</div><div>$ go run main.go<br></div><div>DGT: 1</div><div>DGT: 2</div><div>DGT: 3</div><div>DEC: .</div><div>DGT: 4</div>
<div>DGT: 5</div><div>DGT: 6</div><div>SGN: +</div><div>EXP: 7</div><div>EXP: 8</div><div>EXP: 9</div></div><div><br></div><div>It seems you use ragel 6.7 or older.</div><div><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Oct 22, 2013 at 6:44 PM, Guido Witmond <span dir="ltr"><<a href="mailto:guido@witmond.nl" target="_blank">guido@witmond.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Thanks for developing Ragel.<br>
<br>
Being new, I tried the example from the user manual.<br>
<br>
It runs in C but it breaks in Go.<br>
<br>
I've run: ragel -Z -G2 main.rl && go run main.go<br>
<br>
Results are:<br>
<br>
# command-line-arguments<br>
./main.go:66: goto tr0 jumps into block starting at ./main.go:39<br>
./main.go:71: goto tr3 jumps into block starting at ./main.go:48<br>
./main.go:72: goto st0 jumps into block starting at ./main.go:48<br>
... too many errors.<br>
<br>
It happens in a backported go-1.1.2 from Sid to Wheezy, 64bit<br>
and in go-1.02 on ubuntu 12.04 on 32bits.<br>
<br>
I've run the same program in C: number.rl<br>
<br>
ragel number.rl && gcc number.c && ./a.out "123.456e+789"<br>
DGT: 1<br>
DGT: 2<br>
DGT: 3<br>
DEC: .<br>
enz...<br>
<br>
<br>
Is this a known problem? Do I (newbie) do something wrong?<br>
<br>
Regards, Guido.<br>
<br>
<br>_______________________________________________<br>
ragel-users mailing list<br>
<a href="mailto:ragel-users@complang.org">ragel-users@complang.org</a><br>
<a href="http://www.complang.org/mailman/listinfo/ragel-users" target="_blank">http://www.complang.org/mailman/listinfo/ragel-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>WBR, Anton
</div>