Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   Syntax Checker that's better than the normal syntax checker (http://www.velocityreviews.com/forums/t851597-syntax-checker-thats-better-than-the-normal-syntax-checker.html)

Jacob Grover 07-15-2008 03:49 AM

Syntax Checker that's better than the normal syntax checker
 
I've been using the stupid built in syntax checker, it's been making
some mistakes is there any better syntax checker. Unrealistically, a
standalone application were you paste in your code and it checks it. But
anything other than the built in syntax checker will do.
--
Posted via http://www.ruby-forum.com/.


Ben Bleything 07-15-2008 03:57 AM

Re: Syntax Checker that's better than the normal syntax checker
 
On Tue, Jul 15, 2008, Jacob Grover wrote:
> I've been using the stupid built in syntax checker, it's been making
> some mistakes is there any better syntax checker. Unrealistically, a
> standalone application were you paste in your code and it checks it. But
> anything other than the built in syntax checker will do.


Uh... what?

If the built-in syntax checker isn't catching an error... it's not an
error. The "built-in syntax checker" is the interpreter itself.

Unless you're talking about an IDE or something, in which case you
should probably tell us what you mean...

Ben


Joel VanderWerf 07-15-2008 04:14 AM

Re: Syntax Checker that's better than the normal syntax checker
 
Ben Bleything wrote:
> On Tue, Jul 15, 2008, Jacob Grover wrote:
>> I've been using the stupid built in syntax checker, it's been making
>> some mistakes is there any better syntax checker. Unrealistically, a
>> standalone application were you paste in your code and it checks it. But
>> anything other than the built in syntax checker will do.

>
> Uh... what?
>
> If the built-in syntax checker isn't catching an error... it's not an
> error. The "built-in syntax checker" is the interpreter itself.
>
> Unless you're talking about an IDE or something, in which case you
> should probably tell us what you mean...
>
> Ben


Maybe he's referring to ruby -c ?

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


Ben Bleything 07-15-2008 05:54 AM

Re: Syntax Checker that's better than the normal syntax checker
 
On Tue, Jul 15, 2008, Joel VanderWerf wrote:
> Maybe he's referring to ruby -c ?


Ah, that's a good point. And further perhaps he means "gives better
error messages", since we've probably all felt the pain of ruby -c
telling us that there's a syntax error on the last (blank) line of the
file.

Ben


Dave Bass 07-16-2008 11:45 AM

Re: Syntax Checker that's better than the normal syntax checker
 
> On Tue, Jul 15, 2008, Joel VanderWerf wrote:
> Maybe he's referring to ruby -c ?


ruby -cw surely!

Ruby's error messages are horribly obscure compared with Perl's, which
are really quite friendly. A typical one would be something like "(Blah
blah blah) error. Maybe an unterminated string starting on line 42?" --
which it usually is. Or "Class Thing not found. Maybe you forgot to
include Thing.pm?" -- which is usually the case.

Dave
--
Posted via http://www.ruby-forum.com/.


Jacob Grover 07-18-2008 05:07 AM

Re: Syntax Checker that's better than the normal syntax chec
 
Dave Bass wrote:
>> On Tue, Jul 15, 2008, Joel VanderWerf wrote:
>> Maybe he's referring to ruby -c ?

>
> ruby -cw surely!
>
> Ruby's error messages are horribly obscure compared with Perl's, which
> are really quite friendly. A typical one would be something like "(Blah
> blah blah) error. Maybe an unterminated string starting on line 42?" --
> which it usually is. Or "Class Thing not found. Maybe you forgot to
> include Thing.pm?" -- which is usually the case.
>
> Dave

Cool, now I can use it because I would look for an endless string or too
little or too many ends and so on.

--
Posted via http://www.ruby-forum.com/.



All times are GMT. The time now is 08:18 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.