From: Tim Gesekus Date: 2003-11-11T18:48:34+09:00 Subject: Re: rlex and ryacc --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Luke A. Kanies [2003-11-09 06:04:58 +0900]: > rlex: > Does not generate code that's valid for 1.8, but the code does run. > Does not seem to like parsing strings, only files (I get an infinite > (loop) Had the same problems, but made a patch for rlex. It works for me, but isn't tested to well. And don't forget to redefine wrap to control wrapping behavior. Patch for rlex attached. HTH Tim -- "Lately, the only thing keeping me from becoming a serial killer is my distaste for manual labor." -- Dilbert NP: Saints of Eden - Slow Stay (Crushed Remix) --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rlex.patch" 45a46 > @yy_buffer_seen=false 49a51 > @@yy_init = true 247c249 < yy_current_state = yy_get_previous_state () --- > yy_current_state = yy_get_previous_state() 317c319 < case @yyin.type.to_s --- > case @yyin.class.to_s 321a324,327 > if (@yy_buffer_seen) > input = "" > end > @yy_buffer_seen = true 471a478 > @yy_buffer_seen=false 530c537 < if @yyin.type == File && @yyfilename != nil --- > if @yyin.class == File && @yyfilename != nil 533c540 < @@yyerr.print "`\#\{@yyin.type}' " --- > @@yyerr.print "`\#\{@yyin.class}' " --aVD9QWMuhilNxW9f--