From: William Djaja Tjokroaminata Date: 2002-09-29T00:07:53+09:00 Subject: Re: Is Ruby's grammar LL(k)? 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