PILOT

PILOT

The name PILOT is an acronym, and stands for "Programmed Instruction, Learning, Or Teaching". Like its younger sibling LOGO, it was an early foray into the technology of computer assisted instruction (CAI).

Language syntax

A line of PILOT code contains (from left to right) the following syntax elements:

* an optional label
* a command letter
* an optional Y (for yes) or N (for no)
* an optional conditional expression in parentheses
* a colon (":")
* an operand, or multiple operands delimited by commas.

A label can also be alone in a line, not followed by other code. The syntax for a label is an asterisk followed by an identifier (alphanumeric string with alphabetic initial character).

Command letters

The following commands are used in "core PILOT". Lines beginning with "R:" indicate a remark (or a comment) explaining the code that follows.

A:

Accept input into "accept buffer".

Examples:

R:Next line of input replaces current contents of accept buffer A:

R:Next line of input replaces accept buffer, and string variable 'FREE' A:$FREE

R:Next 3 lines of input assigned to string variables 'X', 'Y' and 'Z' A:$X,$Y,$Z

R:Numeric input assigned to numeric variable "Q" A:#Q

C:

Compute and assign numeric value.

Example: R:Assign arithmetic mean of #X and #Y to #AM C:#AM=(#X+#Y)/2 Most PILOT implementations have only integer arithmetic, and no arrays.

D:

Dimension an array, on some implementations.

E:

End (return from) subroutine or (if outside of a subroutine) abort program. Always used without any operand.

J:

Jump to label.

Example: J:*RESTARTM:

Match the accept buffer against string variables or string literals.

Example: R:Search accept buffer for "TRUTH", the value of $MEXICO and "YOUTH", in that order M:TRUTH,$MEXICO,YOUTH

The first match string (if any) that is a substring of the accept buffer is assigned to the special variable $MATCH. The buffer characters left of the first match are assigned to $LEFT, and the characters on the right are assigned to $RIGHT.

The match flag is set to 'yes' or 'no', depending on whether a match is made. Any statement that has a Y following the command letter is processed only if the match flag is set. Statements with N are processed only if the flag is not set.

N:

Equivalent to TN: (type if last match unsuccessful)

R:

The operand of R: is a comment, and therefore not processed.

T:

'Type' operand as output.

Examples: R:Output a literal string T:Thank you for your support.

R:Output a variable expression T:Thank you, $NAME.

U:

Use (call) a subroutine. A subroutine starts with a label and ends with E:

Example: R:Call subroutine starting at label *INITIALIZE U:*INITIALIZEY:

Equivalent to TY: (type if last match successful)

Parentheses:

If there is parenthesized expression in a statement, it is a test expression, and the statement is processed only if the test has a value of 'true'.

Example: R:Type message if x>y+z T(#X>#Y+#Z):Condition met

Extension features

Extensions to core PILOT include arrays and floating point numbers in Apple PILOT, and implementation of LOGO-inspired turtle graphics in Atari PILOT.

Derivatives

Versions of PILOT overlaid on the BASIC interpreters of early microcomputers were not unknown in the late 1970s and early 1980s, and Byte Magazine at one point published a non-Turing complete derivative of PILOT known as Waduzitdo as a way of demonstrating what a computer was capable of.

In 1991 the IEEE [http://standards.ieee.org/] agreed a standard for Pilot "IEEE Std 1154-1991 IEEE Standard for Programmed Inquiry, Learning, or Teaching (PILOT) " see [http://standards.ieee.org/reading/ieee/std_public/description/busarch/1154-1991_desc.html]

There is an open source implementation of Pilot, RPilot [http://rpilot.sourceforge.net/pilot.html] .


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат
Synonyms:

Look at other dictionaries:

  • pilot — pilot …   Dictionnaire des rimes

  • Pilot(in) — Pilot(in) …   Deutsch Wörterbuch

  • Pilot — can refer to:Paper publications* Pilot (short story) by Stephen Baxter *, a historical fiction novel by James Fenimore Cooper *The Virginian Pilot, newspaper serving the Hampton Roads part of Virginia *The Pilot (Lewisporte, Newfoundland and… …   Wikipedia

  • Pilot — einer F 16 Ein Pilot (frz. pilote von italien. pilota, zu griech. pedón, ursprünglich: pedotta Steuermann) ist eine Person, die ein Luftfahrzeug steuert oder dazu berechtigt ist. Mitunter wird der Ausdruck im übertragenen Sinne auch für Führer… …   Deutsch Wikipedia

  • Pilot — Pi lot, n. [F. pilote, prob. from D. peillood plummet, sounding lead; peilen, pegelen, to sound, measure (fr. D. & G. peil, pegel, a sort of measure, water mark) + lood lead, akin to E. lead. The pilot, then, is the lead man, i. e., he who throws …   The Collaborative International Dictionary of English

  • pilot — pi‧lot [ˈpaɪlət] noun [countable] a test that is done to see if an idea, product etc will be successful: • If the pilots are successful, he hopes to go into full production next year. • The company has no plans to participate in a pilot project… …   Financial and business terms

  • Pilot — Saltar a navegación, búsqueda Pilot puede referirse a: Pilot (banda), el grupo musical que se formó en 1973 en Edimburgo, Escocia. El episodio piloto de alguna serie de televisión: Pilot (Gilmore Girls), primer episodio de la serie estadounidense …   Wikipedia Español

  • Pilot — Разработчик Xerox PARC Первый выпуск 1981 Поддерживаемые языки Английский Поддерживаемые платформы рабочие станции Xerox Star Лицензия Закрытая Состояние …   Википедия

  • pilot — pìlōt [b] (II)[/b] prid. DEFINICIJA koji služi kao eksperiment [pilot emisija; pilot proizvodnja; pilot projekt; pilot istraživanje]; pokusni, probni SINTAGMA pilot balon, v. balon ETIMOLOGIJA vidi pilot [b] (I)[/b] …   Hrvatski jezični portal

  • pilot — I {{/stl 13}}{{stl 8}}mos I, Mc. pilotocie; lm M. pilotoci {{/stl 8}}{{stl 20}} {{/stl 20}}{{stl 12}}1. {{/stl 12}}{{stl 7}} osoba kierująca statkiem powietrznym; lotnik : {{/stl 7}}{{stl 10}}Pilot samolotu pasażerskiego, myśliwca, śmigłowca.… …   Langenscheidt Polski wyjaśnień

  • Pilot — Sm std. (15. Jh.) Entlehnung. Entlehnt aus ndl. piloot Steuermann, Lotse , aus frz. pilote, aus it. pilota m./f., älter pedota, dieses über mittelgriechische Zwischenstufen zu gr. pēdón n. Steuerruder, Ruderblatt . Die heutige Bedeutung… …   Etymologisches Wörterbuch der deutschen sprache

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”