Lines Matching refs:grammar
66 def parse( grammar, rule, input, options = {} ) argument
67 @grammar = inline_grammar( grammar )
91 grammar = %q<
99 parse( grammar, :a, 'a', :listener => listener )
114 grammar = %q<
121 debugger = parse( grammar, :a, 'a' )
144 grammar = %q<
151 debugger = parse( grammar, :a, "a b" )
181 grammar = %q<
189 debugger = parse( grammar, :a, "a" )
214 grammar = %q<
223 debugger = parse( grammar, :a, "a 1 b c 3" )
285 grammar = %q<
294 debugger = parse( grammar, :a, "a 1 b c 3" )
355 grammar = %q<
364 debugger = parse( grammar, :a, "a" )
392 grammar = %q<
403 debugger = parse( grammar, :a, "a 1" )
444 grammar = %q<
456 debugger = parse( grammar, :a, "a !" )
490 grammar = %q<
501 debugger = parse( grammar, :a, "1" )
530 grammar = %q<
540 debugger = parse( grammar, :a, "a" )
566 grammar = %q<
576 debugger = parse( grammar, :a, "a" )
603 grammar = %q<
615 debugger = parse( grammar, :a, "a!" )
670 grammar = %q/
685 parse( grammar, :a, "a!", :listener => listener )