Pilot

Uses your system voice; voice and rate in settings.

Q4696Snapshot

≈ 6 min read

Names in other languages

  • DeutschFamilie und andere Katastrophen
  • ItalianoTutti contro tutti
  • caPilot
  • EnglishPilot
  • EspañolPilot
  • FrançaisPilot
  • NederlandsPilot
  • ocPilot

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Programmed Inquiry, Learning, or Teaching (PILOT) is a simple high-level programming language developed in the 1960s. Like its sibling LOGO, it was developed as an early foray into the technology of computer-assisted instruction. PILOT is an imperative language similar in structure to BASIC and FORTRAN in its basic layout and structure. Its keywords are single characters, T for "type" to print text, or A for "accept", to input values from the user.

Programmed Inquiry, Learning, or Teaching (PILOT) is a simple high-level programming language developed in the 1960s. Like its sibling LOGO, it was developed as an early foray into the technology of computer-assisted instruction. PILOT is an imperative language similar in structure to BASIC and FORTRAN in its basic layout and structure. Its keywords are single characters, T for "type" to print text, or A for "accept", to input values from the user.

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. Most PILOT implementations have only integer arithmetic, and no arrays. Example: R:Assign arithmetic mean of #X and #Y to #AM C:#AM=(#X+#Y)/2 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 a label. Example: J:*RESTART M: 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 has no effect. T: 'Type' operand as output. Examples: R:The next line prints a literal string T:Thank you for your support. R:The next line combines a literal string with 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:*INITIALIZE Y: Equivalent to TY: (type if last match successful) Parentheses: If there is a parenthesized expression in a statement, it is a conditional 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

Derivatives

Extensions to core PILOT include arrays and floating point numbers in Apple PILOT for the Apple II, and LOGO-inspired turtle graphics in Atari PILOT for Atari 8-bit computers. Between 1979 and 1983 the UK PILOT User Group was run by Alec Wood a teacher at Wirral Grammar School for Boys, Merseyside UK. Several machine code versions of a mini PILOT were produced for the microcomputers of the time and a school in Scotland developed an interactive foreign language tutorial where pupils guided footprints around a town asking and answering questions in German, French, etc. An article in the December 1979 of Computer Age covered an early implementation called Tiny Pilot and gave a complete machine code listing. Versions of PILOT written using BASIC interpreters were released in the 1970s and early 1980s. The April 1973 edition of People's Computer Company's newsletter included such a system written in HP Time-Shared BASIC for the HP 2100 system. PETPILOT (PILOT for the Commodore PET) was the first non-Commodore language for the PET and was written in Microsoft BASIC which shipped with the PET, with a little assistance from Bill Gates. It was created in 1979 by Dave Gomberg and could run on a 4K PET (which was never shipped) and ran well on the 8K PETs that Commodore shipped. It was written in Larry Tessler's living room on PET serial number 2. In 1978, Byte Magazine published a non-Turing complete derivative of PILOT known as Waduzitdo by Larry Kheriarty. Atari PILOT, released in ROM cartridge form in 19811 for the Atari 8-bit computers, added turtle graphics and sound support. These instructions used two-letter commands. Atari used PILOT as one of their primary languages at the computer camps they ran in the early 1980s. Clarkson College of Technology developed ZPILOT in 1983 for the Zenith Z-100. 1983's Vanilla PILOT for the Commodore 64 also added turtle graphics, as did Super Turtle PILOT which was published as a type-in listing in the October 19871 issue of COMPUTE! magazine. In 1991 the Institute of Electrical and Electronics Engineers (IEEE) published a standard for Pilot as IEEE Std 11541-1991. It has since been withdrawn. A reference implementation based on this was implemented by Eric Raymond, and maintained—-reluctantly—-for the next 15 years. In 1990 eSTeem PILOT for Atari ST computers was developed and programmed by Tom Nielsen, EdD. Based on the IEEE Standards for PILOT, it includes Atari-specific features such as control of Laserdisc and CDROM devices. A 2018 hobbyist implementation, psPILOT, based in part on the IEEE standard, was implemented using Microsoft's PowerShell scripting language.

References

Further reading

Text derived from https://en.wikipedia.org/w/index.php?oldid=1346426563 under CC BY-SA 4.0; modifications have been made.

References

  1. ↩Wikipedia “Pilot” revision 1346426563 · retrieved 2026-10-20 release date (×3) · confidence 0.95 revision URL

Provenance

snapshot pilot-000520-d6e4d27376242620 · hash d6e4d2737624262044a19bd31693689ae5d91e6e251589d212795e07f0d18cd1 · captured 1774978760.0 · version history

Cite this page as: encyclopegia.org, “Pilot”, snapshot pilot-000520-d6e4d27376242620. https://encyclopegia.org/a/pilot