FACTOID # 92: One in every three Australians is a victim of crime.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > PILOT programming language

The name PILOT is an acronym, and stands for Programmed Instruction, Learning, Or Teaching. Like its elder 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".


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. Always used without any operand.


J:


Jump to label.


Example:


J:*RESTART


M:


Match the accept buffer against string variables or literals.


Example:


A: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:*INITIALIZE


Y:


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 turtle graphics in Atari PILOT.


  Results from FactBites:
 
programming language. The Columbia Encyclopedia, Sixth Edition. 2001-05 (1032 words)
PL/1 [Programming Language 1], developed in the late 1960s by the IBM Corp., and ADA [for Ada Augusta, countess of Lovelace, biographer of Charles Babbage], developed in 1981 by the U.S. Dept. of Defense, are designed for both business and scientific use.
PILOT [Programmed Instruction Learning, Or Testing] is used in writing instructional software, and Occam is a nonsequential language that optimizes the execution of a program’s instructions in parallel-processing systems.
With some languages, such as C or Pascal, the program is turned into a separate machine language program by a compiler, which functions much as an assembler does.
Smalltalk - Wikipedia, the free encyclopedia (1652 words)
Smalltalk is an object-oriented, dynamically typed, reflective, programming language designed at Xerox PARC by Alan Kay, Dan Ingalls, Ted Kaehler, Adele Goldberg, and others during the 1970s, influenced by Sketchpad and Simula.
The first implementation, known as Smalltalk-71, was created in a few mornings on a bet that a programming language based on the idea of message passing inspired by Simula could be implemented in "a page of code".
Smalltalk programs are usually compiled to bytecode, which is then interpreted by a virtual machine or dynamically translated into machine-native code.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.