![]() |
12: Interpreters |
![]() |
Note, however, that because of copyright restrictions, the TCL and LISP interpreters are not part of the standard GNU distribution and must be obtained separately from Static Free Software. The Java interpreter must also be obtained separately (see the installation instructions for UNIX [1-3] and Windows [1-5]).
The Interpretive Language command of the Windows menu shows the language choices available: TCL..., LISP... and/or JAVA... Once these commands are issued, you are in direct communication with the interpreter and may type arbitrary expressions in the messages window. When done with an interpretive session, type Ctrl-D to return to Electric (hold the control key and type "D"). On Windows systems, type ESC.
Besides basic expressions in the language, it is possible to examine and modify the Electric database. Special language extensions exist for doing this. See the documents "Electric's TCL Interface", "Electric's Lisp Interface", and "Electric's Java Interface". for more information about these extensions.
Another way to make use of the interpretive languages is to create attributes on Electric objects that are described with code. Using the Attributes... command of the Info menu, and clicking on the "More" button, you can create new attributes that are actually code. Change the "CODE" popup entry to "TCL", "LISP", or "JAVA" and type the code in the "Value" field. The use of this dialog is beyond the scope of this manual, because it is essentially a debugging tool for examining the internal data structures of Electric.
![]() |
Previous | ![]() |
Table of Contents | Next | ![]() |