Lines Matching refs:Tokens
84 Tokens = TokenScheme.build %w(A B C D E ID VAR) constant in TestPatternParser
85 include Tokens
88 @adaptor = CommonTreeAdaptor.new( Tokens.token_class )
89 @pattern_adaptor = Wizard::PatternAdaptor.new( Tokens.token_class )
90 @wizard = Wizard.new( :adaptor => @adaptor, :token_scheme => Tokens )
95 tree = Wizard::PatternParser.parse( 'ID', Tokens, @adaptor )
103 tree = Wizard::PatternParser.parse( 'ID[foo]', Tokens, @adaptor )
111 tree = Wizard::PatternParser.parse( '(A B)', Tokens, @adaptor )
122 tree = Wizard::PatternParser.parse( 'nil', Tokens, @adaptor )
130 tree = Wizard::PatternParser.parse( '(.)', Tokens, @adaptor )
135 tree = Wizard::PatternParser.parse( '(%a:A)', Tokens, @pattern_adaptor )
141 tree = Wizard::PatternParser.parse( ')', Tokens, @adaptor )
146 tree = Wizard::PatternParser.parse( '()', Tokens, @adaptor )
151 tree = Wizard::PatternParser.parse( '(A ])', Tokens, @adaptor )
159 Tokens = TokenScheme.build %w(A B C D E ID VAR) constant in TestTreeWizard
160 include Tokens
163 @adaptor = CommonTreeAdaptor.new( Tokens.token_class )
164 @wizard = Wizard.new( :adaptor => @adaptor, :token_scheme => Tokens )