home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv7.zip / vac22os2 / ibmcobol / macros / lpexpas.dat < prev    next >
Text File  |  1998-02-24  |  3KB  |  151 lines

  1.  
  2. *******************************************************************************
  3. *                                                                             *
  4. * PRPAS - A Simple LPEX Parser for Pascal                                     *
  5. *                                                                             *
  6. *******************************************************************************
  7. *                                                                             *
  8. * This file contains a list of the Pascal key words and language symbols      *
  9. * that will be identified by the simple Pascal Parser.  It can easily be      *
  10. * modified to tailor the parser to the exact version of Pascal required.      *
  11. *                                                                             *
  12. *******************************************************************************
  13. *                                                                             *
  14. * The format of this file is:                                                 *
  15. *                                                                             *
  16. *   Blank lines or lines with a '*' in column 1 are comments and are ignored. *
  17. *                                                                             *
  18. *   The first set of non-comment lines is the key-word table, the second set  *
  19. *   is the table of built-in functions and procedures and the third set the   *
  20. *   language symbols.  Comments or blanks lines are not allowed in the        *
  21. *   tables.                                                                   *
  22. *                                                                             *
  23. *                                                                             *
  24. *******************************************************************************
  25. *                                                                             *
  26. *                    (C) Copyright IBM Corporation 1989                       *
  27. *                                                                             *
  28. *******************************************************************************
  29.  
  30.  
  31. *
  32. * First the key-word table.  This must be arranged in ascending ASCII order.
  33. *
  34.  
  35.   AND
  36.   ARRAY
  37.   BEGIN
  38.   BOOLEAN
  39.   CASE
  40.   CHAR
  41.   CONST
  42.   DIV
  43.   DO
  44.   DOWNTO
  45.   ELSE
  46.   END
  47.   FALSE
  48.   FILE
  49.   FOR
  50.   FUNCTION
  51.   GOTO
  52.   IF
  53.   IN
  54.   INTEGER
  55.   LABEL
  56.   LSTRING
  57.   MOD
  58.   NIL
  59.   NOT
  60.   OF
  61.   OR
  62.   OTHERWISE
  63.   PACKED
  64.   PROCEDURE
  65.   PROGRAM
  66.   REAL
  67.   RECORD
  68.   REPEAT
  69.   SET
  70.   STRING
  71.   THEN
  72.   TO
  73.   TRUE
  74.   TYPE
  75.   UNTIL
  76.   VAR
  77.   WHILE
  78.   WITH
  79.   WORD
  80.   XOR
  81.  
  82.  
  83. *
  84. * Second the list of built-in functions and procedures, again arranged in
  85. * ascending ASCII order.
  86. *
  87.  
  88.   ABS
  89.   ARCTAN
  90.   CHR
  91.   COS
  92.   DISPOSE
  93.   EOF
  94.   EOLN
  95.   EXP
  96.   GET
  97.   LN
  98.   NEW
  99.   ODD
  100.   ORD
  101.   PACK
  102.   PAGE
  103.   PRED
  104.   PUT
  105.   READ
  106.   READLN
  107.   RESET
  108.   REWRITE
  109.   SIN
  110.   SQR
  111.   SQRT
  112.   SUCC
  113.   UNPACK
  114.   WRITE
  115.   WRITELN
  116.  
  117.  
  118. *
  119. * Lastly the list of language symbols.  There are arranged in ascending ASCII
  120. * order of the first character.  Then in order of length, longest first.
  121. *
  122. * Note: Don't start these in column 1, or the '*' symbol would be taken as
  123. *       a comment!
  124. *
  125.  
  126.    (.
  127.    (
  128.    )
  129.    *
  130.    +
  131.    ,
  132.    -
  133.    .)
  134.    ..
  135.    .
  136.    /
  137.    :=
  138.    :
  139.    ;
  140.    <=
  141.    <>
  142.    <
  143.    =
  144.    >=
  145.    >
  146.    [
  147.    ]
  148.    ^
  149.  
  150.  
  151.