[ragel-users] Bug in Go language when using %%{ write first_final; }%%
Anton Ageev
antage at gmail.com
Sun Dec 1 19:42:32 UTC 2013
Thanks Adrian. I was not sure how to fix this problem properly.
On Sun, Dec 1, 2013 at 9:02 PM, Adrian Thurston <thurston at complang.org>wrote:
> I just pushed a fix to the ragel-6 branch.
>
> I am currently working on the go code generator in master (ragel-7).
>
> Adrian
> @ehdtee
>
>
> On 13-11-25 02:47 PM, Iñaki Baz Castillo wrote:
>
>> Hi, just a reminder of this bug as I expect it is just a minor detail :)
>>
>> 2013/11/12 Iñaki Baz Castillo<ibc at aliax.net>:
>>
>>> The following code in Go:
>>>
>>> -----------------
>>> if cs != %%{ write first_final; }%% {
>>> -----------------
>>>
>>> generates the following lines in the .go file:
>>>
>>> -----------------
>>> if cs !=
>>> // line 12549 "SDP.go"
>>> 461
>>> // line 79 "SDP.rl"
>>> {
>>> -----------------
>>>
>>> This produces, of course, a syntax error in Go:
>>>
>>> sdp/SDP.go:12549: missing condition in if statement
>>> sdp/SDP.go:12549: cs != 461 evaluated but not used
>>>
>>>
>>>
>>> $ ragel -v
>>> Ragel State Machine Compiler version 6.8 Feb 2013
>>>
>>>
>>>
>>> --
>>> Iñaki Baz Castillo
>>> <ibc at aliax.net>
>>>
>>
>>
>>
>>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
>
--
WBR, Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20131201/9397ef98/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