From: pat eyler Date: 2005-12-08T01:00:21+09:00 Subject: Re: Syntax checker? I'm not sure I understand your request, but are you looking for ruby -c script? pate@linux:~/scratch> ruby -c cprimes.rb Syntax OK pate@linux:~/scratch> ruby -c primes_with_error.rb primes_with_error.rb:32: syntax error pate@linux:~/scratch> On 12/7/05, William E. Rubin wrote: > Ruby doesn't seem to check for class names, function names, and so > forth until it actually hits a line that tries to use such a thing. Is > there a way to get it to check up front, without having to run the > script through every possible line of code? > > I understand that this is not strictly "syntax" checking, and that Ruby > does actually do a "syntax" check. So I mean some other term, more > along the lines of what a traditional compiler will do (minus the > actual compilation). > > > -- thanks, -pate -------------------------