Reputation: 393
I have an automatically generated TCL proc, which has many if
condition, some lines inside some if condition never gets executed for any possible combinations of proc inputs.
But I found some syntactical errors in those lines like extra ]
or multiplication [1*1]
instead of [expr 1*1]
. I want to find out these TCL syntactical errors in all the lines. Is there any clever way to do achieve this?
Upvotes: 0
Views: 84
Reputation: 137557
You can use a tool like Nagelfar for syntax analysis; the website even has an online demo that you can try. It might not catch all the problems, but it could catch some.
Upvotes: 1