examples/general/SRL/lib/grammar.rb in rley-0.6.00 vs examples/general/SRL/lib/grammar.rb in rley-0.6.01
- old
+ new
@@ -30,11 +30,11 @@
rule('expression' => 'pattern').as 'simple_expr'
rule('pattern' => %w[pattern separator quantifiable]).as 'pattern_sequence'
rule('pattern' => 'quantifiable').as 'basic_pattern'
rule('separator' => 'COMMA').as 'comma_separator'
rule('separator' => []).as 'void_separator'
- rule('flags' => %[flags separator single_flag]).as 'flag_sequence'
+ rule('flags' => %w[flags separator single_flag]).as 'flag_sequence'
rule('single_flag' => %w[CASE INSENSITIVE]).as 'case_insensitive'
rule('single_flag' => %w[MULTI LINE]).as 'multi_line'
rule('single_flag' => %w[ALL LAZY]).as 'all_lazy'
rule('quantifiable' => %w[begin_anchor anchorable end_anchor]).as 'pinned_quantifiable'
rule('quantifiable' => %w[begin_anchor anchorable]).as 'begin_anchor_quantifiable'
@@ -101,6 +101,6 @@
rule('times_suffix' => []).as 'times_dropped'
end
# And now build the grammar and make it accessible via a global constant
Grammar = builder.grammar
-end # module
\ No newline at end of file
+end # module