Searched refs:to_s (Results 1 - 25 of 35) sorted by relevance

12

/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/template/
H A Dparameter.rb7 def to_s method in class:ANTLR3.Template.Parameter
26 names = map { | param | param.name.to_s }
27 @splat and names << @splat.to_s
28 @block and names << @block.to_s
36 else Parameter.new( name.to_s )
48 def to_s method in class:ANTLR3.Template.ParameterList
50 @splat and signature << ", *" << @splat.to_s
51 @block and signature << ", &" << @block.to_s
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/
H A Dtest-template.rb26 vars = context.instance_variables.map { | i | i.to_s }
96 @group.template_defined?( name.to_s ).should be_true
110 @group.private_instance_methods.should include name.to_s
139 | <%= attribute( :name => attr, :access => ( access || 'rw' ) ).to_s.chomp %>
151 | % case @access.to_s.downcase
180 MethodDescription.new( :to_s, '@name.to_s.dup' )
190 vegetable.to_s.should == tidy( <<-END.chomp )
200 | def to_s
201 | @name.to_s
[all...]
H A Dtest-scope.rb16 @A.members.map( &:to_s ).should == %w( a b )
17 @B.members.map( &:to_s ).should == %w( count )
18 @C.members.map( &:to_s ).should == %w( a b c )
H A Dtest-tree-wizard.rb217 imap.map { |type, nodes| [type, nodes.map { |n| n.to_s }] }
255 elements << node.to_s
267 elements << node.to_s
279 elements << node.to_s
291 elements << node.to_s
298 '%s@%s[%d]' % [node.to_s, (parent || 'nil').to_s, index]
329 elements << node.to_s
348 suffix = names.map { |n| labels[n].to_s }.join('&')
349 '%s@%s[%d]%s' % [node.to_s, (paren
[all...]
H A Dtest-streams.rb399 @stream.to_s.should == "foobargnurzblarz"
400 @stream.to_s(1,2).should == 'bargnurz'
401 @stream.to_s(@stream[1], @stream[-2]).should == 'bargnurz'
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
H A Dtemplate.rb127 erb.def_method( sclass, 'to_s' )
132 self::TEMPLATES.fetch( name.to_s ).new( values )
140 self::TEMPLATES.has_key?( name.to_s )
144 name = name.to_s.dup.freeze
147 ERB.new( source, nil, '%' ).def_method( tclass, 'to_s' )
155 new_name, old_name = new_name.to_s.dup.freeze, old_name.to_s
156 context = self::TEMPLATES.fetch( old_name.to_s ) do
189 end.to_s
203 TEMPLATES[ #{ name.inspect } ].new( values ).to_s
288 def to_s method in class:Parameter
325 def to_s method in class:ParameterList
[all...]
H A Dutil.rb10 str = str.to_s.gsub( /([A-Z]+)([A-Z][a-z])/,'\1_\2' )
71 raise TypeError, #{ message.to_s.inspect }
84 extra_message and message << '; ' << extra_message.to_s
H A Dtask.rb134 dir = options[ :output_directory ] and @output_directory = dir.to_s
143 else Shellwords.shellwords( opts.to_s )
148 else Shellwords.shellwords( opts.to_s )
220 token = token.to_s.dup
252 @path = path.to_s
429 @path = path.to_s
H A Dtoken.rb120 when Symbol then name == obj.to_s
186 channel == DEFAULT_CHANNEL or rep << " (#{ channel.to_s })"
202 def to_s method in class:ANTLR3.Token
203 text.to_s
564 name = name.to_s
606 name = name.to_s.freeze
625 token_names[ type_value ] = name.to_s.freeze
636 else const_defined?( name_or_value.to_s )
643 else const_get( name_or_value.to_s ) rescue token_names.index( name_or_value )
H A Ddot.rb66 def to_s method in class:ANTLR3.DOT.Context
114 return tree_template.to_s
H A Dtree.rb124 name = token_name( expected_token_type ).to_s
409 empty? and return to_s
411 buffer << '(' << to_s << ' ' unless flat_list?
440 abstract :to_s
576 def to_s method in class:ANTLR3.CommonTree.infer_boundaries
577 flat_list? ? 'nil' : @token.text.to_s
635 @input.to_s( i, j ) # <- the bad text
637 @input.to_s( @start, @stop ) # <- the bad text
643 def to_s method in class:ANTLR3.CommonTree.CommonErrorNode
861 from_token.text = text.to_s i
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
H A Dhetero-nodes.rb17 def to_s method in class:TestHeterogeneousNodeTypes.V
36 def to_s method in class:TestHeterogeneousNodeTypes.V
55 def to_s method in class:TestHeterogeneousNodeTypes.V
74 def to_s method in class:TestHeterogeneousNodeTypes.V
93 def to_s method in class:TestHeterogeneousNodeTypes.V
113 def to_s method in class:TestHeterogeneousNodeTypes.V
133 def to_s method in class:TestHeterogeneousNodeTypes.V
153 def to_s method in class:TestHeterogeneousNodeTypes.V
173 def to_s method in class:TestHeterogeneousNodeTypes.V
206 def to_s method in class:TestHeterogeneousNodeTypes.V
226 def to_s method in class:TestHeterogeneousNodeTypes.V
247 def to_s method in class:TestHeterogeneousNodeTypes.V
267 def to_s method in class:TestHeterogeneousNodeTypes.V
289 def to_s method in class:TestHeterogeneousNodeTypes.V
298 def to_s method in class:TestHeterogeneousNodeTypes.W
322 def to_s method in class:TestHeterogeneousNodeTypes.V
358 def to_s method in class:TestHeterogeneousNodeTypes.V
363 def to_s method in class:TestHeterogeneousNodeTypes.W
396 def to_s method in class:TestHeterogeneousNodeTypes.V
402 def to_s method in class:TestHeterogeneousNodeTypes.W
436 def to_s method in class:TestHeterogeneousNodeTypes.V
474 def to_s method in class:TestHeterogeneousNodeTypes.V
508 def to_s method in class:TestHeterogeneousNodeTypes.V
550 def to_s method in class:TestHeterogeneousNodeTypes.V
584 def to_s method in class:TestHeterogeneousNodeTypes.V
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
H A Drecord-event-listener.rb20 event_message = event_message.to_s
H A Dtrace-event-listener.rb24 event_message = event_message.to_s << "\n"
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
H A Dfunctional.rb81 if g = grammars[ name.to_s ]
83 grammars.delete( name.to_s )
110 path = local_path( name.to_s )
H A Dgrammar.rb28 path = File.expand_path path.to_s
54 path = File.expand_path path.to_s
67 @path = path.to_s
239 token = token.to_s.dup
279 @source = source.to_s.fixed_indent( 0 )
295 previous, @path = @path, v.to_s
H A Dcore-extensions.rb6 File.join( self, subpath.to_s )
189 File.expand_path( path.to_s ).split( File::Separator ).tap do |list|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
H A Dinteractive.rb41 line = line.to_s.encode( Encoding::UTF_8 )
77 @data << line.to_s
H A Drewrite.rb39 TokenRewriteStream is a specialized form of CommonTokenStream that provides simple stream editing functionality. By creating <i>rewrite programs</i>, new text output can be created based upon the tokens in the stream. The basic token stream itself is preserved, and text output is rendered on demand using the #to_s method.
111 buffer << text.to_s
113 buffer << token.text.to_s if token
146 buffer << text.to_s unless text.nil?
247 prior_operation.text = operation.text << prior_operation.text.to_s
370 else programs[ name.to_s ]
418 when String, Symbol then name = arguments.shift.to_s
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
H A Dbasic.rb234 error.to_s.should == %q<operation (replace @ 1..2 : "foo") overlaps with previous operation (replace @ 0..3 : "bar")>
245 error.to_s.should == %q<operation (insert-before @ 4 : "y") overlaps with previous operation (replace @ 2..4 : "x")>
256 error.to_s.should == %q<operation (replace @ 3..5 : "foo") overlaps with previous operation (replace @ 2..4 : "xyz")>
267 error.to_s.should == %q<operation (replace @ 1..3 : "foo") overlaps with previous operation (replace @ 2..4 : "xyz")>
H A Dvia-parser.rb41 stat: ID '=' expr ';' {$body::decls << $ID.text.to_s}
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/tasks/support/gl-matrix/
H A Drelease_helper.rb36 GLMatrix.base_path.to_s
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/
H A Dtemplate-output.rb25 return( out ? out.to_s : out )
57 [<%= @args.join( @op.to_s ) %>]
181 [<%= @args.join( @op.to_s ) %>]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
H A Drule-methods.rb126 mname = RUBY_VERSION =~ /^1\.9/ ? proc { | n | n.to_sym } : proc { | n | n.to_s }
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/tree-parser/
H A Dbasic.rb214 {capture($ID.to_s)}
250 {capture($ID.to_s)}
286 {self.capture($ID.to_s + ", " + $b.text.to_s)}
323 {say( $ID.to_s + ", " + x.to_s )}

Completed in 6695 milliseconds

12