home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pccts1.zip / ANTLR / ERR.C < prev    next >
C/C++ Source or Header  |  1993-09-02  |  4KB  |  166 lines

  1. /*
  2.  * A n t l r  S e t s / E r r o r  F i l e  H e a d e r
  3.  *
  4.  * Generated from: antlr.g
  5.  *
  6.  * Terence Parr, Will Cohen, and Hank Dietz: 1989-1993
  7.  * Purdue University Electrical Engineering
  8.  * ANTLR Version 1.10
  9.  */
  10.  
  11. #include <stdio.h>
  12. #define ANTLR_VERSION    110
  13.  
  14. #ifdef __cplusplus
  15. #ifndef __STDC__
  16. #define __STDC__
  17. #endif
  18. #endif
  19. #include "set.h"
  20. #include <ctype.h>
  21. #include "syn.h"
  22. #include "hash.h"
  23. #include "generic.h"
  24. #define zzcr_attr(attr,tok,t)
  25. #define zzEOF_TOKEN 1
  26. #define zzSET_SIZE 12
  27. #include "antlr.h"
  28. #include "tokens.h"
  29. #include "dlgdef.h"
  30. #include "err.h"
  31.  
  32. char *zztokens[94]={
  33.     /* 00 */    "Invalid",
  34.     /* 01 */    "Eof",
  35.     /* 02 */    "QuotedTerm",
  36.     /* 03 */    "\\n",
  37.     /* 04 */    "\\~[]",
  38.     /* 05 */    "~[\\n\"\\]+",
  39.     /* 06 */    "\"",
  40.     /* 07 */    "\\n",
  41.     /* 08 */    "\\~[]",
  42.     /* 09 */    "~[\\n\"\\]+",
  43.     /* 10 */    "'",
  44.     /* 11 */    "\\n",
  45.     /* 12 */    "\\~[]",
  46.     /* 13 */    "~[\\n'\\]+",
  47.     /* 14 */    "\\*/",
  48.     /* 15 */    "\\*",
  49.     /* 16 */    "\\n",
  50.     /* 17 */    "~[\\n\\*]+",
  51.     /* 18 */    "\\n",
  52.     /* 19 */    "~[\\n]+",
  53.     /* 20 */    "\\n",
  54.     /* 21 */    "~[\\n]+",
  55.     /* 22 */    "\\*/",
  56.     /* 23 */    "\\*",
  57.     /* 24 */    "\\n",
  58.     /* 25 */    "~[\\n\\*]+",
  59.     /* 26 */    "Action",
  60.     /* 27 */    "Pred",
  61.     /* 28 */    "PassAction",
  62.     /* 29 */    "\\n",
  63.     /* 30 */    "\\>",
  64.     /* 31 */    "$",
  65.     /* 32 */    "$$",
  66.     /* 33 */    "$\\[\\]",
  67.     /* 34 */    "$\\[",
  68.     /* 35 */    "$[0-9]+",
  69.     /* 36 */    "$[0-9]+.",
  70.     /* 37 */    "$[0-9]+.[0-9]+",
  71.     /* 38 */    "$[_a-zA-Z][_a-zA-Z0-9]*",
  72.     /* 39 */    "#0",
  73.     /* 40 */    "#\\[\\]",
  74.     /* 41 */    "#\\(\\)",
  75.     /* 42 */    "#[0-9]+",
  76.     /* 43 */    "#\\[",
  77.     /* 44 */    "#\\(",
  78.     /* 45 */    "#",
  79.     /* 46 */    "\\)",
  80.     /* 47 */    "\\[",
  81.     /* 48 */    "\\(",
  82.     /* 49 */    "\\\\]",
  83.     /* 50 */    "\\\\)",
  84.     /* 51 */    "\\>",
  85.     /* 52 */    "'",
  86.     /* 53 */    "\"",
  87.     /* 54 */    "\\$",
  88.     /* 55 */    "\\#",
  89.     /* 56 */    "\\~[\\]\\)>$#]",
  90.     /* 57 */    "/",
  91.     /* 58 */    "/\\*",
  92.     /* 59 */    "\\*/",
  93.     /* 60 */    "//",
  94.     /* 61 */    "~[\\n\\)\\(\\$#\\>\\]\\[\"'/]+",
  95.     /* 62 */    "[\\t\\ ]+",
  96.     /* 63 */    "[\\n\\r]",
  97.     /* 64 */    "\\[",
  98.     /* 65 */    "\\<\\<",
  99.     /* 66 */    "\"",
  100.     /* 67 */    "/\\*",
  101.     /* 68 */    "\\*/",
  102.     /* 69 */    "//",
  103.     /* 70 */    "\\>\\>",
  104.     /* 71 */    "#header",
  105.     /* 72 */    "#parser",
  106.     /* 73 */    "NonTerminal",
  107.     /* 74 */    "!",
  108.     /* 75 */    "\\<",
  109.     /* 76 */    "\\>",
  110.     /* 77 */    ":",
  111.     /* 78 */    ";",
  112.     /* 79 */    "#lexaction",
  113.     /* 80 */    "#lexclass",
  114.     /* 81 */    "TokenTerm",
  115.     /* 82 */    "#errclass",
  116.     /* 83 */    "\\{",
  117.     /* 84 */    "\\}",
  118.     /* 85 */    "#token",
  119.     /* 86 */    "\\|",
  120.     /* 87 */    "^",
  121.     /* 88 */    "\\(",
  122.     /* 89 */    "\\)",
  123.     /* 90 */    "\\*",
  124.     /* 91 */    "\\+",
  125.     /* 92 */    "?",
  126.     /* 93 */    "#[A-Za-z0-9_]*"
  127. };
  128. SetWordType zzerr1[12] = {0x4,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x2,0x0
  129.     };
  130. SetWordType zzerr2[12] = {0x4,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x2,0x2,0x0
  131.     };
  132. SetWordType zzerr3[12] = {0x4,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x2,0x2,0x0
  133.     };
  134. SetWordType setwd1[94] = {0x0,0xdd,0x20,0x0,0x0,0x0,0x0,
  135.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  136.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  137.     0x0,0x0,0x0,0xdc,0x0,0x2,0x0,0x0,
  138.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  139.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  140.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  141.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  142.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  143.     0x0,0x0,0xfc,0x0,0x2,0x0,0x0,0x0,
  144.     0xdc,0xdc,0x20,0xdc,0x0,0x0,0xdc,0x0,
  145.     0x0,0x0,0x0,0x0,0x0,0x0,0x0};
  146. SetWordType zzerr4[12] = {0x4,0x0,0x0,0x1c, 0x0,0x0,0x0,0x0, 0x0,0x76,0xda,0xf
  147.     };
  148. SetWordType zzerr5[12] = {0x4,0x0,0x0,0x1c, 0x0,0x0,0x0,0x0, 0x0,0x76,0xda,0xf
  149.     };
  150. SetWordType zzerr6[12] = {0x4,0x0,0x0,0x1c, 0x0,0x0,0x0,0x0, 0x0,0x72,0x5a,0x1f
  151.     };
  152. SetWordType zzerr7[12] = {0x4,0x0,0x0,0x1c, 0x0,0x0,0x0,0x0, 0x0,0x32,0xa,0xd
  153.     };
  154. SetWordType setwd2[94] = {0x0,0x0,0xda,0x0,0x0,0x0,0x0,
  155.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  156.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  157.     0x0,0x0,0x0,0xda,0xda,0xfa,0x0,0x0,
  158.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  159.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  160.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  161.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  162.     0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  163.     0x0,0x0,0xda,0x0,0x20,0xda,0xda,0xdd,
  164.     0x0,0x0,0xda,0x0,0xda,0xdd,0x0,0xdc,
  165.     0x0,0xda,0xdd,0xda,0xda,0x0,0x0};
  166.