Syntax checking

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Wed May 05 1999 - 11:55:01 MEST


Hi everybody,

Among other things, I'm using ROOT for teaching, doing some simple
simulation projects with students.
It works quite well, except for syntax checking, that is not the primary
goal of cint, as Masa stated a few months ago. I agree with this, but I
wonder if it would be difficult to implement a syntax checker, perhaps
the one in gcc, before launching a macro. Do such things exist ?
Just as an example, a few students (they just begin C programming)
sometimes put colons instead of semicolons in a "for" statement.
for(i=0,i<10,i++) instead of for(i=0;i<10;i++)
This crashes their ROOT 2.20 (have to upgrade, I know) session, even
once quit ROOT without explanation.

I don't know if the rewinding scheme implemented by masa solves this. I
would still like some sort of syntax checking before actually launching
the macro. Through g++ ?

Any comments ?

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:32 MET