This class provides a text editor specialized for editing Ptcl
source. Ptcl is the Ptolemy extension to Tcl.
Ptolemy is a software environment that provides simulation an code
generation capabilities.
http://ptolemy.eecs.berkeley.edu
describes the Ptolemy project in detail.
See the pitcl
page for a description of pitcl, a different interface to the Ptolemy
kernel.
The Ptcl Editor is automatically
invoked whenever you open any file with an .ptcl
extension or .pt
extension.
If you are running Tycho outside of Ptolemy, and Octtools
is not present in the binary and a directory is opened
that contains a schematic/contents;
subfile, and the
directory is not named *.pal
, then this editor will attempt
to run oct2ptcl
to convert the Octtools facet to ptcl and
then display the results. If you are running Tycho with a binary
that has Octtools, then Vem will open up the Octtools facet in the usual
way.
The EditPtcl class is derived from the EditItcl class, and therefore inherits all of its features. It colors certain Ptcl constructs, such as comments and universe definitions.
To evaluate a ptcl file, you must have the ptcl extensions built
into the binary that tycho is running. To start tycho with the ptcl
extension, run tycho -pigi
. See the Tycho startup
documentation for more information.
The Ptcl editor has a Special
menubutton, which has the
following choices: