Home | History | Annotate | Download | only in test

Lines Matching refs:grammars

74   # Compile and load inline grammars on demand when their constant name
77 # for all grammars to compile, and then discovering there's a big dumb
78 # error ruining most of the grammars.
81 if g = grammars[ name.to_s ]
83 grammars.delete( name.to_s )
85 elsif superclass.respond_to?( :grammars )
89 # assumptions made in the test code. Grammars are stored in @grammars belonging
90 # to the test class, so in 1.9, this method is called with @grammars = {}
101 def grammars
102 @grammars ||= {}
106 grammars.length
143 @grammars ||= {}
145 if conflict = @grammars[ name ] and conflict.source != grammar.source
146 message = "Multiple grammars exist with the name ``#{ name }''"
149 @grammars[ name ] = grammar