From: Logan Capaldo Date: 2006-03-05T03:39:45+09:00 Subject: Re: Ruby on the mobile? On Mar 4, 2006, at 12:08 PM, ts wrote: >>>>>> "M" == Matthias Georgi writes: > > M> This surprises me, as I cannot find anything related in parse.y > or did > M> I look in the wrong place? > > > NODE* > rb_compile_file(f, file, start) > const char *f; > VALUE file; > int start; > { > lex_gets = rb_io_gets; > lex_input = file; > lex_pbeg = lex_p = lex_pend = 0; > ruby_sourceline = start - 1; > > return yycompile(f, start); > } > > See the VALUE file and rb_io_gets() > > > Guy Decoux > > > Wow, that's kind of (if I may be permitted to use the term) badass. I can just see someone (probably Matz.) sitting there coding ruby and thinking "Hmm, I've written this neat stdlib with OO support for files, and I need to read a file to parse it...might as well use it."