Jmol Developers:

I implemented full script syntax checking today. If you use this most 
recent upload, please be on the lookout for script issues. I don't 
guarantee that it is bug free. I've double checked my work, but it was a 
bit tricky. Perhaps someone can run this on a large set of complicated 
scripts to see what happens.

The way to use this is to add the -c flag to the jmol.jar/jmol.bat 
command line:

  Jmol.bat -coins test.spt

for example, will syntax check all commands in test.spt, and (I think) 
in all scripts that test.spt calls. (I haven't checked that.)

I ran this on all of the commands given in new.htm and isosurface.htm 
and found a handful of problems there that were easily fixed (missing 
files, for example).

Egon, you were looking for something like this for Bioclipse. Check out 
how the console command line now works in the application. As you type, 
after each character, the command is preprocessed for syntax. You will 
see the color switch from red (invalid) to black (valid) as you complete 
command names and close parentheses and quotation marks. If you see this 
red when it shouldn't be, or you get null pointer errors, please let me 
know. I found a few places already where we weren't trapping missing 
end-of-line conditions, for example.

In addition, you can have access to all the tokens that are associated 
with the script, but I haven't experimented with that at all.

It really should be FULL syntax checking. Try, for example, putting 
invalid numbers in -- numbers out of range, for example -- and you will 
see that it is responding to that.

Like I said, there could be some surprises here. Consider it bleeding.

Today is Thanksgiving here, so I'm out of the picture until Friday.

Bob


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to