ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/lsys/Parser.cpp
Revision: 1.1
Committed: Thu Nov 6 14:31:24 2008 UTC (15 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 /*
2 * Parser: P a r s e r S u p p o r t
3 *
4 * Generated from: parser.g
5 *
6 * Terence Parr, Russell Quong, Will Cohen, and Hank Dietz: 1989-2001
7 * Parr Research Corporation
8 * with Purdue University Electrical Engineering
9 * with AHPCRC, University of Minnesota
10 * ANTLR Version 1.33MR33
11 */
12
13 #define ANTLR_VERSION 13333
14 #include "pcctscfg.h"
15 #include "pccts_stdio.h"
16 #define ANTLR_SUPPORT_CODE
17 #include "tokens.h"
18 #include "Parser.h"
19
20 const ANTLRChar *Parser::tokenName(int tok) { return _token_tbl[tok]; }
21
22 const ANTLRChar *Parser::_token_tbl[]={
23 /* 00 */ "Invalid",
24 /* 01 */ "@",
25 /* 02 */ "\\n",
26 /* 03 */ "\\*/",
27 /* 04 */ "~[]",
28 /* 05 */ "Name",
29 /* 06 */ "\\\"",
30 /* 07 */ "~[]",
31 /* 08 */ "/\\*",
32 /* 09 */ "\"",
33 /* 10 */ "//~[\\n]*",
34 /* 11 */ "#~[\\n]*",
35 /* 12 */ "\\n",
36 /* 13 */ "[\\ ]+",
37 /* 14 */ "\\t",
38 /* 15 */ "Number",
39 /* 16 */ "WildCard",
40 /* 17 */ "\\(",
41 /* 18 */ "\\)",
42 /* 19 */ ";",
43 /* 20 */ "\\<",
44 /* 21 */ "\\>",
45 /* 22 */ ":",
46 /* 23 */ "=>",
47 /* 24 */ ",",
48 /* 25 */ "\\",
49 /* 26 */ "\\+",
50 /* 27 */ "\\-",
51 /* 28 */ "\\*",
52 /* 29 */ "\\/",
53 /* 30 */ "\\^",
54 /* 31 */ "\\{",
55 /* 32 */ "\\}",
56 /* 33 */ "\\.",
57 /* 34 */ "\\|",
58 /* 35 */ "\\~",
59 /* 36 */ "\\[",
60 /* 37 */ "\\]",
61 /* 38 */ "\\!",
62 /* 39 */ "\\&",
63 /* 40 */ "\\%",
64 /* 41 */ "\\'",
65 /* 42 */ "\\&\\&",
66 /* 43 */ "\\|\\|",
67 /* 44 */ ">=",
68 /* 45 */ "==",
69 /* 46 */ "=",
70 /* 47 */ "!=",
71 /* 48 */ "<="
72 };
73
74 Parser::Parser(ANTLRTokenBuffer *input) : ANTLRParser(input,1,0,0,8)
75 {
76 token_tbl = _token_tbl;
77 traceOptionValueDefault=0; // MR10 turn trace OFF
78 }
79
80 SetWordType Parser::err1[8] = {0xfe,0xff,0xfe,0xff, 0xff,0xff,0x1,0x0};
81 SetWordType Parser::WildCard_set[8] = {0xfc,0xff,0xfe,0xff, 0xff,0xff,0x1,0x0};
82 SetWordType Parser::WildCard_errset[8] = {0xfc,0xff,0xfe,0xff, 0xff,0xff,0x1,0x0};
83 SetWordType Parser::err4[8] = {0x20,0x0,0x2,0x0, 0x0,0x0,0x0,0x0};
84 SetWordType Parser::err5[8] = {0x20,0x0,0x2,0x0, 0x0,0x0,0x0,0x0};
85 SetWordType Parser::setwd1[49] = {0x0,0x19,0xe6,0xe6,0xe6,0xe6,0xe6,
86 0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,
87 0xe6,0x0,0xe6,0xfe,0xe6,0xe6,0xe6,0xe6,
88 0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,
89 0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,
90 0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,
91 0xe6,0xe6};
92 SetWordType Parser::err6[8] = {0xfc,0xff,0xfe,0xff, 0xff,0xff,0x1,0x0};
93 SetWordType Parser::err7[8] = {0x0,0x0,0xf0,0x0, 0x0,0x0,0x0,0x0};
94 SetWordType Parser::err8[8] = {0x0,0x0,0xe0,0x0, 0x0,0x0,0x0,0x0};
95 SetWordType Parser::err9[8] = {0x0,0x0,0xc0,0x0, 0x0,0x0,0x0,0x0};
96 SetWordType Parser::err10[8] = {0x20,0x80,0x8,0xff, 0xff,0x1,0x0,0x0};
97 SetWordType Parser::err11[8] = {0x0,0x0,0x8,0x1, 0x0,0x0,0x0,0x0};
98 SetWordType Parser::setwd2[49] = {0x0,0x8,0x9,0x9,0x9,0x4f,0x9,
99 0x9,0x9,0x9,0x9,0x9,0x9,0x9,0x9,
100 0x4d,0x0,0x9,0x9,0x89,0x9,0x19,0x39,
101 0x39,0x89,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,
102 0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,
103 0x4f,0x4f,0x9,0x9,0x9,0x9,0x9,0x9,
104 0x9,0x9};
105 SetWordType Parser::err12[8] = {0x20,0x82,0xfe,0xff, 0xff,0x1,0x0,0x0};
106 SetWordType Parser::err13[8] = {0x20,0x80,0x0,0xfe, 0xff,0x1,0x0,0x0};
107 SetWordType Parser::err14[8] = {0x20,0x0,0x0,0xfe, 0xff,0x1,0x0,0x0};
108 SetWordType Parser::setwd3[49] = {0x0,0x1,0x1,0x1,0x1,0xfb,0x1,
109 0x1,0x1,0xdd,0x1,0x1,0x1,0x1,0x1,
110 0xdb,0x0,0xc1,0xdd,0xdd,0xdd,0xdd,0xdd,
111 0xdd,0xdd,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,
112 0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,
113 0xfb,0xfb,0x81,0x81,0x81,0x81,0x81,0x81,
114 0x81,0x81};
115 SetWordType Parser::err15[8] = {0x20,0x82,0x3e,0xd, 0x40,0xfe,0x1,0x0};
116 SetWordType Parser::err16[8] = {0x0,0x2,0x0,0x0, 0x0,0x2,0x0,0x0};
117 SetWordType Parser::err17[8] = {0x20,0x80,0xbe,0xd, 0x40,0xfc,0x1,0x0};
118 SetWordType Parser::setwd4[49] = {0x0,0x0,0x0,0x0,0x0,0x43,0x0,
119 0x0,0x0,0x5,0x0,0x0,0x0,0x0,0x0,
120 0x43,0x0,0x43,0x7b,0x7b,0x43,0x43,0x1,
121 0x61,0x7b,0x1,0x43,0x43,0x1,0x1,0x1,
122 0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x3,
123 0x1,0x1,0x4,0xc2,0xc2,0x42,0x42,0x42,
124 0x42,0x42};
125 SetWordType Parser::err18[8] = {0x0,0x0,0xbc,0x1, 0x0,0xfc,0x1,0x0};
126 SetWordType Parser::err19[8] = {0x20,0x80,0xbe,0xd, 0x0,0xfc,0x1,0x0};
127 SetWordType Parser::setwd5[49] = {0x0,0x0,0x0,0x0,0x0,0x8,0x0,
128 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
129 0x8,0x0,0x8,0x57,0x57,0x50,0x50,0x0,
130 0x57,0x57,0x0,0x30,0x30,0x80,0x80,0x0,
131 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
132 0x0,0x80,0x0,0x56,0x56,0x50,0x50,0x50,
133 0x50,0x50};
134 SetWordType Parser::err20[8] = {0x20,0x80,0x2,0x0, 0x0,0x0,0x0,0x0};
135 SetWordType Parser::err21[8] = {0x20,0x80,0x0,0x0, 0x0,0x0,0x0,0x0};
136 SetWordType Parser::err22[8] = {0x0,0x0,0xbe,0x7d, 0x0,0xfd,0x1,0x0};
137 SetWordType Parser::setwd6[49] = {0x0,0x0,0x0,0x0,0x0,0x4,0x0,
138 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
139 0x4,0x0,0x0,0x7b,0x7b,0x7b,0x7b,0x0,
140 0x7b,0x7b,0x0,0x7b,0x7b,0x7a,0x7a,0x78,
141 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
142 0x0,0x7a,0x0,0x7b,0x7b,0x7b,0x7b,0x7b,
143 0x7b,0x7b};