Google


yorick banner

Home

Manual

Packages

Global Index

Keywords

Quick Reference

Back: local Forward: Starting   FastBack: Flow control Up: Basics FastForward: Arrays         Top: Yorick Contents: Table of Contents Index: Concept Index About: About this document

1.3 The Interpreted Environment

The Yorick program accepts only complete input lines typed at your keyboard. Typing a command to Yorick presumes a "command line interface" or a "terminal emulator" which is not a part of Yorick. I designed Yorick on the assumption that you have a good terminal emulator program. In particular, Yorick is much easier to use if you can recall and edit previous input lines; as in music, repitition with variations is at the heart of programming. My personal recommendation is shell-mode in GNU Emacs.

Therefore, Yorick inherits most of its "look and feel" from your terminal emulator. Yorick's distinctive prompts and error messages are described later in this section.

Any significant Yorick program will be stored in a text file, called an include file, after the command which reads it. Use your favorite text editor to create and modify your include files. Again, GNU Emacs is my favorite -- use its c-mode to edit Yorick include files as well as C programs. Just as C source file names should end in `.c' or `.h', and Fortran source file names should end in `.f', so Yorick include file names should end in `.i'.

This section begins with additional stylistic suggestions concerning include files. In particular, Yorick's help command can find documentation comments in your include files if you format them properly. All of the built-in Yorick functions, such as sin, write, or plg, come equipped with such comments.

1.3.1 Starting, stopping, and interrupting Yorick  
1.3.2 Include files  How to read Yorick statements from a file.
1.3.3 The help function  Using the help command.
1.3.4 The info function  Getting information about a variable.
1.3.5 Prompts  What Yorick prompts mean.
1.3.6 Shell commands, removing and renaming files  Issuing shell commands from within Yorick.
1.3.7 Error Messages  What to do when Yorick detects an error.


Back: local Forward: Starting   FastBack: Flow control Up: Basics FastForward: Arrays         Top: Yorick Contents: Table of Contents Index: Concept Index About: About this document