net.sf.tomp.xtcl
Class Main

java.lang.Object
  extended by net.sf.tomp.xtcl.Main

public class Main
extends java.lang.Object

Main XTCL entry point, allows execution of XTCL script from files or interactively command-by-command from comman line.
Usage examples:
Execution of the script file specified by option -f filename

java net.sf.tomp.xtcl.Main -q -f demo\echo.xcf
gives just
Echo!
The same in default verbose (non-quiet) mode:
java net.sf.tomp.xtcl.Main -f demo\echo.xcf
gives
XTCL - program from file 'demo\echo.xcf'
0.0: Echo!
OK ECHO Echo! (0 ms)
Execution time: 0 ms.
Execution of command specified directly on command line
java net.sf.tomp.xtcl.Main -q ECHO Hello!
gives
Hello!
The same in default verbose (non-quiet) mode:
java net.sf.tomp.xtcl.Main ECHO Hello!
gives
XTCL - command read from command line:
Hello!
OK ECHO Hello!Execution time: 0 ms.
Options -f and commands directly on command line may be combined. Example:
First, execute the script demo\echo.xcf then the command ECHO Hello!.
If -F is specified, the script file is executed after the command on the command line.
java net.sf.tomp.xtcl.Main -q -f demo\echo.xcf ECHO Hello!
gives
Echo!
Hello!
while
java net.sf.tomp.xtcl.Main -q -F demo\echo.xcf ECHO Hello!
gives
Hello!
Echo!
The two parameters -f and -F can even be combined:
java net.sf.tomp.xtcl.Main -q -f demo\echo.xcf -F demo\echo.xcf ECHO Hello!
gives
Echo!
Hello!
Echo!
Interactive mode: commands are entered to System.in and immediatelly executed until END is entered.
java net.sf.tomp.xtcl.Main -i -q
Interactive work may look like:
XTCL 0>echo gujh
gujh

XTCL 1>end

Version:
2004-07-29
Author:
tomp

Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main XTCL entry point, allows execution of XTCL script from files or interactively command-by-command from command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main XTCL entry point, allows execution of XTCL script from files or interactively command-by-command from command line.

Parameters:
args - the command line arguments
Throws:
java.lang.Exception - if execution fails


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.