1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3
* Copyright (C) 1998-2001 Gerwin Klein <lsf@jflex.de> *
4
* All rights reserved. *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License. See the file *
8
* COPYRIGHT for more information. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License along *
16
* with this program; if not, write to the Free Software Foundation, Inc., *
17
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
19
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25
* Central class for all kinds of JFlex messages.
27
* [Is not yet used exclusively, but should]
29
* @author Gerwin Klein
30
* @version JFlex 1.3.5, $Revision: 1.31 $, $Date: 2001/10/08 10:07:59 $
32
public interface ErrorMessages {
34
String messages [] = {
35
"Unterminated string at end of line.",
36
"<<EOF>> must be followed by an action.",
37
"<<EOF>> can only be used as a single rule.",
39
"Unexpected character ",
40
"Unexpected character <newline>",
41
"Lexical state has not been declared.",
42
"State identifier expected.",
43
"Illegal repeat statement. At least one operand must be > 0",
44
"Illegal repeat statement."+Out.NL+"First operand must not be greater than second one.",
45
"Regular expression expected.",
46
"Macro has not been declared.",
47
"Character set is too small for this class.",
48
"Character set is too small for a charactor of this string.",
49
"Character set is too small for this character.",
50
"Macros in character classes are not supported.",
53
"%-option is not at the beginning of the line.",
54
"Didn't find matching bracket",
55
"Unexpected end of file in action code",
56
"Unexpected end of file in comment",
57
"Unexpected end of file in string",
58
"Unexpected end of file in macros",
59
"Unexpected end of file in state list",
60
"Unexpected end of file in regular expression",
61
"Unexpected end of file (maybe missing \"*/\", \")\", \"]\" or \"}\")",
62
"This seems not to be a lexical specification (first %% is missing)",
63
"Last action in the specification must not be \"|\"",
64
"End of expression matches beginning of trailing context",
65
"No directory for -d option",
66
"No file provided for -skel option",
67
"Incorrect skeleton file (wrong number of sections)",
68
"JFlex has run out of memory."+Out.NL+"Please try increasing the maximum JVM heap size",
69
"%initthrow needs a list of (qualified) identifiers",
70
"%eofthrow needs a list of (qualified) identifiers",
71
"%yylexthrow needs a list of (qualified) identifiers",
72
"Your scanner has zero states. Very funny.",
73
"%buffer expects the size of the scanner buffer as decimal number",
74
"Could not open file.",
75
"Cyclic file inclusion.",
76
"Error writing to file",
77
"%scannerror needs a (qualified) identifier",
78
"Rule can never be matched:",
79
"%throws needs a list of (qualified) identifiers",
80
"Unexpected newline in character class (closing \"]\" is missing)",
81
"%cupsym needs a (qualified) identifier",
82
"%cupsym should be used before %cup"
86
int UNTERMINATED_STR = 0;
87
int EOF_WO_ACTION = 1;
88
int EOF_SINGLERULE = 2;
89
int UNKNOWN_OPTION = 3;
90
int UNEXPECTED_CHAR = 4;
91
int UNEXPECTED_NL = 5;
92
int LEXSTATE_UNDECL = 6;
93
int STATE_IDENT_EXP = 7;
95
int REPEAT_GREATER = 9;
96
int REGEXP_EXPECTED = 10;
97
int MACRO_UNDECL = 11;
98
int CHARSET_2_SMALL = 12;
99
int CS2SMALL_STRING = 13;
100
int CS2SMALL_CHAR = 14;
101
int CHARCLASS_MACRO = 15;
102
int UNKNOWN_SYNTAX = 16;
103
int SYNTAX_ERROR = 17;
105
int NO_MATCHING_BR = 19;
106
int EOF_IN_ACTION = 20;
107
int EOF_IN_COMMENT = 21;
108
int EOF_IN_STRING = 22;
109
int EOF_IN_MACROS = 23;
110
int EOF_IN_STATES = 24;
111
int EOF_IN_REGEXP = 25;
112
int UNEXPECTED_EOF = 26;
113
int NO_LEX_SPEC = 27;
114
int NO_LAST_ACTION = 28;
115
int LOOKAHEAD_ERROR = 29;
116
int NO_DIRECTORY = 30;
117
int NO_SKEL_FILE = 31;
118
int WRONG_SKELETON = 32;
119
int OUT_OF_MEMORY = 33;
120
int QUIL_INITTHROW = 34;
121
int QUIL_EOFTHROW = 35;
122
int QUIL_YYLEXTHROW = 36;
123
int ZERO_STATES = 37;
124
int NO_BUFFER_SIZE = 38;
125
int NOT_READABLE = 39;
128
int QUIL_SCANERROR = 42;
129
int NEVER_MATCH = 43;
131
int EOL_IN_CHARCLASS = 45;
132
int QUIL_CUPSYM = 46;
133
int CUPSYM_AFTER_CUP = 47;