Iñaki Baz Castillo
2013-11-11 23:57:04 UTC
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
-----------------
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>
I?aki Baz Castillo
<ibc at aliax.net>