A from scratch implementation of Tcl on Parrot.
To build the tcl compiler, first build parrot and the parrot utilities. From the top level parrot directory:
perl Configure.pl && make
Then, type make in this directory. This will generate the file tcl.pbc which can then be used to run tcl programs.
make
tcl.pbc
../../parrot tcl.pbc foo.tcl
To run partcl interactively, type:
make tclsh
in this directory.
partcl supports two command line options (that are not standard Tcl):
Analagous to perl's -e switch, this option will let you specify tcl code in the command line, which will then be executed. e.g:
-e
$ ../../parrot tcl.pbc -e='puts {Hello World}' Hello World
You will need to properly quote the tcl to protect it from your shell, and you must specify the =. (Because parrot's getopt implementation requires it.)
=
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 -e.).
To run an example, change to the examples, and type make for instructions.
examples
To run the test suite, type make test. Note - if any tests fail, try setting the environment variable TEST_PROG_ARGS to -G and retry.
make test
TEST_PROG_ARGS
-G
If any tests fail (with -G or not), please email the perl6-internals list.
See docs/ and TODO
docs/
TODO
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.