The viper package is now named gov.nist.itl.sdct.viper. The scripts
viper (unix) and viper.bat (dos) are provided for running
the viper parser without the need to type in the complete package name.
Key in:
viper -h
(If you're on a unix system, you may have to chmod +x viper
first.) The list of command line options will be displayed.
There are two configuration files that viper requires: stdNodes.wrl
and constraints.wrl. By default, they're looked for in the current
working directory. This can be overridden with the cmd line options
-c and -n. The viper script file uses the flags and also
specfies the files be in the current directory -- see the script to specify
a different location for the files.
A typical invocation:
viper -s -f vrmlfile.wrl
This will parse the file vrmlfile.wrl, check for syntax
and semantic errors, and, if poosible, display the Scene Graph. (Assuming
the files, stdNodes.wrl & constraints.wrl, are located
in the correct directory.)
To test, key in:
viper -s -f testWrld.wrl (testWrld.wrl is included
with the distribution.):
A Scene Graph without errors should be displayed.