Re: [ragel-users] ruby syntax error

2013-02-04 Thread Adrian Thurston
Definitely a bug. There is an empty case statement being generated, which isn't legal ruby code. On 13-01-19 04:29 PM, Alexandru Tică wrote: Hi, I've written a simple scanner to match the "FROM t1, t2, .. , tn" clause within an SQL statement. The target language is ruby. Please see below: %%{

[ragel-users] ruby syntax error

2013-01-19 Thread Alexandru Tică
Hi, I've written a simple scanner to match the "FROM t1, t2, .. , tn" clause within an SQL statement. The target language is ruby. Please see below: %%{ machine from_detector; # define intereseting keywords K_FROM = /from/i; # strings squoted_string = "'" ( (any - "''")** ) "'"; dquoted_string