Syntax checker?


I know this is probably difficult considering C++ being a static language, but does ROOT, in any way, have the capability to do syntax checking on interpreted scripts before they are run?

IE, in Ruby, I would do this:

>ruby -c somefile.rb
Syntax OK
>ruby somefile.rb

It would be very helpful in debugging, since the interpreter tends to be wrong when it tells me which line my code breaks on.


Something close to this behavior is to try loading the script via ACLiC (however in this case you must code using C++ syntax without any of the CINT shortcuts):root [] .L myscript.C+