home *** CD-ROM | disk | FTP | other *** search
/ Kids Cube / 6_Math.iso / roo / language < prev    next >
Text File  |  1992-01-21  |  1KB  |  51 lines

  1.             A Short Description Of The Roo&Robby Language 
  2.  
  3. This document contains main characteristics of the language used in the 
  4. Roo and Robby environments.
  5.  
  6. 1. Linear Programs:
  7.  
  8.    Every line may contain only one command. No labels, GOTO, and the like. 
  9. All possible commands are attached to function keys so one can see all of 
  10. them listed in the F-key line (the top line in the screen).
  11.  
  12. 2. Branchings (IF-statements) have one of the following two forms:
  13.  
  14.    if <condition> then
  15.    ............
  16.    the end of branching
  17.  
  18. or 
  19.  
  20.    if <condition> then
  21.    ..............
  22.    otherwise
  23.    ..............
  24.    the end of branching
  25.  
  26. Here and below "............." means any program (without subroutines).
  27.  
  28. You may see all the possible condition if you press the F-key "If". 
  29.  
  30.  
  31. 3. Cyclings (loops) have the following form:
  32.  
  33.    while <condition> repeat
  34.    ............
  35.    the end of cycling
  36.  
  37. Here <condition> means the same as in the previous paragraph.
  38.  
  39. 4. Subroutines have the following form:
  40.  
  41.    subroutine <name>
  42.    ..............
  43.    the end of subroutine
  44.  
  45. All subroutines must be placed after the main program. 
  46.  
  47. Command
  48.             do <name>
  49.  
  50. will force Roo or Robby to execute the subroutine <name>.
  51.