Author: coke
Date: Sat Oct  8 21:06:42 2005
New Revision: 9413

Modified:
   trunk/languages/tcl/README
   trunk/languages/tcl/tcl.pir
Log:
Tcl:
Change --dump to --pir at Mdiep's suggestion. Document the options in
README.



Modified: trunk/languages/tcl/README
==============================================================================
--- trunk/languages/tcl/README  (original)
+++ trunk/languages/tcl/README  Sat Oct  8 21:06:42 2005
@@ -20,6 +20,27 @@ To run ParTcl interactively, simply type
 
 in this directory.
 
+=head2 Command line options
+
+partcl supports two command line options (that are not standard Tcl):
+
+=over 4
+
+=item -e
+
+Analagous to perl's C<-e> switch, this option will let you specify tcl
+in the command, which will then be executed. e.g:
+
+ ../../parrot tcl.pbc -e="puts {Hello World}"
+
+=item --pir
+
+Given this option, partcl will compile the tcl code to PIR, and output
+the PIR on STDOUT. This PIR can then be compiled to parrot bytecode, or
+run directly through parrot. Works with C<-e>.
+
+=back
+
 =head2 Examples
 
 To run an example, change to the C<examples>, and type C<make>
@@ -35,9 +56,6 @@ If any tests fail (with C<-G> or not), p
 
 =head2 Documentation
 
-See:
-
- docs/*
- TODO
+See C<docs/> and C<TODO>
 
 =cut

Modified: trunk/languages/tcl/tcl.pir
==============================================================================
--- trunk/languages/tcl/tcl.pir (original)
+++ trunk/languages/tcl/tcl.pir Sat Oct  8 21:06:42 2005
@@ -90,7 +90,7 @@ open_file: 
   .local pmc opt_spec
   opt_spec = new .Array
   opt_spec = 2
-  opt_spec[0] = "dump"
+  opt_spec[0] = "pir"
   opt_spec[1] = "e=s"
 
   .local pmc opt, argv_clone
@@ -99,7 +99,7 @@ open_file: 
   opt = get_options(argv_clone, opt_spec)
 
   .local int dump_only, execute
-  dump_only = defined opt["dump"]
+  dump_only = defined opt["pir"]
 
   execute = defined opt["e"]
   if execute goto oneliner

Reply via email to