home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / beehive / program / dds.arc / DDS.HIN < prev   
Encoding:
Text File  |  1991-04-21  |  2.4 KB  |  96 lines

  1. Best Language Tool: <dds@cc.ic.ac.uk> Diomidis Spinellis
  2.  
  3.     Diomidis Spinellis
  4.     Imperial College, University of London
  5.     Myrsinis 1
  6.     GR-145 62 Kifissia
  7.     Greece
  8.  
  9.  
  10. Judges' comments:
  11.  
  12.     Compile and run.  Give the following lines as input:
  13.     
  14.     OLD LANDER.BAS
  15.     RUN
  16.  
  17.     Be sure not to run out of fuel!
  18.  
  19.  
  20. Selected notes from the author:
  21.  
  22.     This is the DDS-BASIC Interpreter (Version 1.00). 
  23.  
  24.     Immediate commands:
  25.  
  26.     RUN    LIST    NEW    OLD filename
  27.     BYE    SAVE filename
  28.  
  29.     Program commands:
  30.  
  31.     variable names a to z        variables initialized to 0 on RUN
  32.     FOR var = exp TO exp        NEXT variable
  33.     GOSUB exp            RETURN
  34.     GOTO exp            IF exp THEN exp
  35.     INPUT variable            PRINT string
  36.     PRINT exp            var = exp
  37.     REM any text            END
  38.  
  39.     Expressions (ranked by precedence):
  40.  
  41.     Bracketed expressions
  42.     number (leading 0 for octal, 0x for hex, else decimal), variable
  43.     Unary -
  44.     * / 
  45.     + - 
  46.     = <> 
  47.     > < 
  48.     <= >=
  49.     (* and + are also used for boolean AND and boolean OR)
  50.     Boolean expressions evaluate to 0 for false and 1 for true
  51.  
  52.     Editing:
  53.  
  54.     - Line editor using line re-entry.
  55.     - A line number with nothing following it, deletes the line.
  56.  
  57.  
  58.     Input format:
  59.  
  60.     - Free format positioning of tokens on the line.
  61.     - No space is allowed before the line number.
  62.     - Exactly one space is needed between the OLD or SAVE command and 
  63.       the filename.
  64.     - ALL INPUT MUST BE UPPERCASE.
  65.  
  66.     Limits:
  67.  
  68.     Line numbers        1-10000
  69.     Line length        999 characters
  70.     FOR nesting        26
  71.     GOSUB            999 levels
  72.     Program            Dynamically allocated
  73.     Expressions        -32768 - 32767 for 16 bit machines, 
  74.                 -2147483648 - 2147483647 for 32 bit machines
  75.  
  76.     Error checking / error reports:
  77.  
  78.     No error checking is performed.
  79.     The message `core dumped' signifies a syntax or semantic error.
  80.  
  81.     Hosting Environment:
  82.  
  83.     ANSI C, traditional K&R C or OSF ANDF
  84.     ASCII or EBCIDIC character set
  85.     48K bytes memory
  86.  
  87.     The Speed of DDS-BASIC Interpreter (Version 1.00). relative to
  88.     Microsoft Advanced BASIC 3.31 is Approximately 60%.
  89.  
  90.     The code size could be further reduced by doing ugly things like
  91.     not declaring the return type of functions, not freeing memory,
  92.     #defining define, and joining lines.  In its present 1536 character
  93.     form the program is reasonably portable (it may fail to run in a
  94.     tagged object architecture) and nicely formatted (it fits in an
  95.     80*25 screen).
  96.