private void checkTerminator()
     throws ScriptException {
        if (input.getTokenType() != ScriptTokenizer.TYPE_SYMBOL) {
            if (input.hasMoreTokens())
                scriptError("too many arguments");
            else
                scriptError("Script ends without a terminator");
        }
        else if (input.getSymbol() != ',' && input.getSymbol() != ';' && input.getSymbol() != '!')
            scriptError("Illegal terminator: '" + input.getSymbol() + "'");
    }