From: "Mauricio Fernández" Date: 2002-09-29T02:57:00+09:00 Subject: [OT] Re: Is Ruby's grammar LL(k)? On Sun, Sep 29, 2002 at 12:07:53AM +0900, William Djaja Tjokroaminata wrote: > I am sorry, I know the code below is just an example. But will I be > correct if I write > > while gets > next if /^\s*#/ # Skip comments > parseLine unless /^\s*$/ # Don't parse blank lines > end > > ? Or are there other cases, beside the =begin and =end blocks? > > Regards, > > Bill > =========================================================================== > Mark Probert wrote: > > For example: > > > while gets > > next if /^#/ # Skip comments > > parseLine unless /^$/ # Don't parse empty lines end > > end Working on enhancing SRuby? ;-) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Whoa...I did a 'zcat /vmlinuz > /dev/audio' and I think I heard God... -- mikecd on #Linux