basic.rb | 18 def rewrite( input, expected ) method in class:TestRewritingLexerOutputDirectly 27 rewrite( 'abc', '0abc' ) do |stream| 33 rewrite( 'abc', 'abcx' ) do |stream| 39 rewrite( 'abc', 'axbxc' ) do |stream| 46 rewrite( 'abc', 'xbc' ) do |stream| 52 rewrite( 'abc', 'abx' ) do |stream| 58 rewrite( 'abc', 'abx' ) do |stream| 64 rewrite( 'abc', 'axc' ) do |stream| 70 rewrite( 'abc', 'ayc' ) do |stream| 77 rewrite( 'abc', '_ayc' ) do |stream 289 def rewrite( input ) method in class:TestRewritingWithTokenStream2 [all...] |