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:
%%{
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