[x] 368 this, "Empty character set is not allowed as it will not match any character.");
[x] 81 p, p.getLhs() + " occurs on the left hand side of more than one production.");
[x] 110 res.nsTok, "Lexical state \"" + res.nextState +
[x] 117 res.rexp, "EOF action/state change must be specified for all states, " + "i.e., <*>TOKEN:.
[x] 120 res.rexp, "EOF action/state change can be specified only in a " + "TOKEN specification.
[x] 123 res.rexp, "Duplicate action/state change specification for <EOF>.");
[x] 136 res.rexp, "Private (#) regular expression cannot be defined within " + "grammar productions.
[x] 158 res.rexp, "Multiply defined lexical token name \"" + s + "\".");
[x] 163 res.rexp, "Lexical token name \"" + s + "\" is the same as " + "that of a lexical state.
[x] 217 sl, "String \"" + sl.image + "\" can never be matched " + "due to presence of more general (IGNORE_CASE) regular expression " + "at line " + other.getLine() + ", column " + other.getColumn() + ".
[x] 222 sl, "Duplicate definition of string token \"" + sl.image + "\" " + "can never be matched.
[x] 668 e, "Undefined lexical token name \"" + jn.label + "\".");
[x] 670 e, "Token name \"" + jn.label + "\" refers to a private " + "(with a #) regular expression.
[x] 673 e, "Token name \"" + jn.label + "\" refers to a non-token " + "(SKIP, MORE, IGNORE_IN_BNF) regular expression.
[x] 757 e, "Non-terminal " + nt.getName() + " has not been defined.");
[x] 779 e, "Expansion within \"(...)+\" can be matched by empty string.");
[x] 783 e, "Expansion within \"(...)*\" can be matched by empty string.");
[x] 787 e, "Expansion within \"(...)?\" can be matched by empty string.");
Warnings
[x] JavaCCParserInternals.java (2 usages found)
[x] 110 p, "Ignoring lexical state specifications since option " +
[x] 138 t, "Ignoring declarations in \"TOKEN_MGR_DECLS\" since option " +
[x] LexGen.java (2 usages found)
[x] 713 rexprs[initMatch[i]],
[x] 721 rexprs[initMatch[i]],"Regular expression" + ((rexprs[initMatch[i]].label.equals(""))
? "" : (" for " + rexprs[initMatch[i]].label)) +
" can be matched by the empty string (\"\") in lexical state " +
lexStateName[i] + ". This regular expression along with the " +
"regular expressions at " + reList + " forms the cycle \n " +
cycle + "\ncontaining regular expressions with empty matches." +
" This can result in an endless loop of empty string matches.
[ ] LookaheadCalc.java (3 usages found)
[ ] 133 exp, "This choice can expand to the empty token sequence " +
[ ] 137 exp, "JAVACODE non-terminal will force this choice to be taken " +
[ ] 210 Main.lg.curRE, "Non-ASCII characters used in regular expression.\n" +
[ ] 254 Main.lg.curRE, "Non-ASCII characters used in regular expression.\n" +
[x] Options.java (6 usages found)
[x] 369 nameloc, "Bad option name \"" + name
[x] 390 valueloc, "Bad option value \"" + value
[x] 397 nameloc, "Duplicate option setting for \""
[x] 404 nameloc, "Command line setting of \"" + name + "\" modifies option value in file.");
[x] 418 valueloc, "Bad option value \"" + value
[x] 431 valueloc, "Bad option value \"" + value
[x] OtherFilesGen.java (1 usage found)
[x] 166 re, "Consider giving this non-string token a label for better error reporting.");
[x] OtherFilesGenCPP.java (1 usage found)
[x] 141 re, "Consider giving this non-string token a label for better error reporting.");
[ ] RChoice.java (2 usages found)
[ ] 154 this, "Regular Expression choice : " + curRE.label + " can never be matched as : " + label
[ ] 157 this, "Regular Expression choice : " + curRE.label + " can never be matched as token of kind : " + ordinal
[ ] RStringLiteral.java (1 usage found)
[ ] 331 Main.lg.curRE, "Non-ASCII characters used in regular expression." +
[x] JavaCCErrors.warning(" \"" +
JavaCCGlobals.add_escapes(allImages[j 64 + k]) +
"\" cannot be matched as a string literal token " +
"at line " + GetLine(j 64 + k) + ", column " + GetColumn(j 64 + k) +
". It will be matched as " +
GetLabel(intermediateKinds[(j 64 + k)][i]) + ".");
[x] Semanticize.java (7 usages found)
[x] 128 res.rexp, "Ignoring regular expression specification since option USER_TOKEN_MANAGER has been set to true."
[x] 131 ` res.rexp, "Ignoring free-standing regular expression reference. " +
"If you really want this, you must give it a different label as <NEWLABEL:<"
res.rexp.label + ">>. " +`
[x] 236 sl, "String with IGNORE_CASE is partially superceded by string at" + pos + ".");
[x] 238 sl, "String with IGNORE_CASE is partially superceded by strings at" + pos + ".");
[x] 376 res.rexp, "Unlabeled regular expression cannot be referred to by " +
[x] 721 la, "Encountered LOOKAHEAD(...) at a non-choice location. " +
[x] 724 la, "Encountered LOOKAHEAD(...) at a non-choice location. This will be ignored.");
[x] JavaCCParser.java (7 usages found)
[x] 645 getToken(0), "Regular expression is being treated as if it were a TOKEN since option USER_TOKEN_MANAGER has been set to true.");
[x] 654 t, "Ignoring \"IGNORE_CASE\" specification since option USER_TOKEN_MANAGER has been set to true.");
[x] 741 t, "Ignoring action in regular expression specification since option USER_TOKEN_MANAGER has been set to true.");
[x] 821 t, "Only semantic lookahead specifications within other lookahead specifications is considered. Syntactic lookahead is ignored.");
[x] 995 t, "Encountered LOOKAHEAD(...) at a non-choice location. Only semantic lookahead will be considered here.");
[x] 997 t, "Encountered LOOKAHEAD(...) at a non-choice location. This will be ignored.");
[x] 1011 t, "Action within lookahead specification will be ignored.");
Parse errors
t, "Encountered non-hex character '" + ch +
t, "Illegal escape sequence '\\" + ch + "' at position " + index + " of string.");
t, "Name " + id2 + " must be the same as that used at PARSER_BEGIN (" + id1 + ")");
t, "Multiple declaration of parser class.");
t, "Parser class has not been defined between PARSER_BEGIN and PARSER_END.");
p, "Multiple occurrence of \"" + p.lexStates[i] + "\" in lexical state list.");
t, "Multiple occurrence of \"TOKEN_MGR_DECLS\".");
t, "Encountered non-hex character '" + ch +
t, "Illegal escape sequence '\\" + ch +
t, "String in character list may contain only one character.");
t, "String in character list may contain only one character.");
t, "Right end of character range \'" + s +
tryLoc, "Try block must contain at least one catch or finally block.");
t, "Actions are not permitted on private (#) regular expressions.");
t, "Lexical state changes are not permitted after private (#) regular expressions.");
Semantic errors
this, "Invalid range : \"" + (int)l + "\" - \""
this, "Empty character set is not allowed as it will not match any character.");
p, p.getLhs() + " occurs on the left hand side of more than one production.");
res.nsTok, "Lexical state \"" + res.nextState +
res.rexp, "EOF action/state change must be specified for all states, " + "i.e., <*>TOKEN:.
res.rexp, "EOF action/state change can be specified only in a " + "TOKEN specification.
res.rexp, "Duplicate action/state change specification for <EOF>.");
res.rexp, "Private (#) regular expression cannot be defined within " + "grammar productions.
res.rexp, "Multiply defined lexical token name \"" + s + "\".");
res.rexp, "Lexical token name \"" + s + "\" is the same as " + "that of a lexical state.
sl, "String \"" + sl.image + "\" can never be matched " + "due to presence of more general (IGNORE_CASE) regular expression " + "at line " + other.getLine() + ", column " + other.getColumn() + ".
sl, "Duplicate definition of string token \"" + sl.image + "\" " + "can never be matched.
sl, "Duplicate definition of string token \"" + sl.image + "\".");
sl, "Duplicate definition of string token \"" + sl.image + " in lexical state \"" + tp.lexStates[i] + "\"."
sl, "String token \"" + sl.image + "\" has been defined as a \"" + TokenProduction.kindImage[re.tpContext.kind] + "\" token."
sl, "String token \"" + sl.image + "has been defined as a private regular expression."
rexp, "Loop in regular expression detected: \"" + loopString + "\"");
prod, "Left recursion detected: \"" + loopString + "\"");
prod, "Left recursion detected: \"" + loopString + "\"");
jn.regexpr, "Loop in regular expression detected: \"" + loopString + "\"");
e, "Undefined lexical token name \"" + jn.label + "\".");
e, "Token name \"" + jn.label + "\" refers to a private " + "(with a #) regular expression.
e, "Token name \"" + jn.label + "\" refers to a non-token " + "(SKIP, MORE, IGNORE_IN_BNF) regular expression.
e, "Non-terminal " + nt.getName() + " has not been defined.");
e, "Expansion within \"(...)+\" can be matched by empty string.");
e, "Expansion within \"(...)*\" can be matched by empty string.");
e, "Expansion within \"(...)?\" can be matched by empty string.");
Warnings
p, "Ignoring lexical state specifications since option " +
t, "Ignoring declarations in \"TOKEN_MGR_DECLS\" since option " +
rexprs[initMatch[i]],
rexprs[initMatch[i]],"Regular expression" + ((rexprs[initMatch[i]].label.equals(""))
? "" : (" for " + rexprs[initMatch[i]].label)) + " can be matched by the empty string (\"\") in lexical state " + lexStateName[i] + ". This regular expression along with the " + "regular expressions at " + reList + " forms the cycle \n " + cycle + "\ncontaining regular expressions with empty matches." + " This can result in an endless loop of empty string matches.exp, "This choice can expand to the empty token sequence " +
exp, "JAVACODE non-terminal will force this choice to be taken " +
nested, "JAVACODE non-terminal within " + image(exp) +
Main.lg.curRE, "Non-ASCII characters used in regular expression.\n" +
Main.lg.curRE, "Non-ASCII characters used in regular expression.\n" +
nameloc, "Bad option name \"" + name
valueloc, "Bad option value \"" + value
nameloc, "Duplicate option setting for \""
nameloc, "Command line setting of \"" + name + "\" modifies option value in file.");
valueloc, "Bad option value \"" + value
valueloc, "Bad option value \"" + value
re, "Consider giving this non-string token a label for better error reporting.");
re, "Consider giving this non-string token a label for better error reporting.");
this, "Regular Expression choice : " + curRE.label + " can never be matched as : " + label
this, "Regular Expression choice : " + curRE.label + " can never be matched as token of kind : " + ordinal
Main.lg.curRE, "Non-ASCII characters used in regular expression." +
JavaCCErrors.warning(" \"" +
JavaCCGlobals.add_escapes(allImages[j 64 + k]) + "\" cannot be matched as a string literal token " + "at line " + GetLine(j 64 + k) + ", column " + GetColumn(j 64 + k) + ". It will be matched as " + GetLabel(intermediateKinds[(j 64 + k)][i]) + ".");res.rexp, "Ignoring regular expression specification since option USER_TOKEN_MANAGER has been set to true."
sl, "String with IGNORE_CASE is partially superceded by string at" + pos + ".");
sl, "String with IGNORE_CASE is partially superceded by strings at" + pos + ".");
res.rexp, "Unlabeled regular expression cannot be referred to by " +
la, "Encountered LOOKAHEAD(...) at a non-choice location. " +
la, "Encountered LOOKAHEAD(...) at a non-choice location. This will be ignored.");
getToken(0), "Regular expression is being treated as if it were a TOKEN since option USER_TOKEN_MANAGER has been set to true.");
t, "Ignoring \"IGNORE_CASE\" specification since option USER_TOKEN_MANAGER has been set to true.");
t, "Ignoring action in regular expression specification since option USER_TOKEN_MANAGER has been set to true.");
t, "Only semantic lookahead specifications within other lookahead specifications is considered. Syntactic lookahead is ignored.");
t, "Encountered LOOKAHEAD(...) at a non-choice location. Only semantic lookahead will be considered here.");
t, "Encountered LOOKAHEAD(...) at a non-choice location. This will be ignored.");
t, "Action within lookahead specification will be ignored.");