Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* Generated By:JavaCC: Do not edit this line. MatlabParserImplConstants.java */
package net.sourceforge.pmd.lang.matlab.ast;
/**
* net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken literal values and constants.
* Generated by org.javacc.parser.OtherFilesGen#start()
*/
/** Token kinds ({@link net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken#kind}) for this language. */
@net.sourceforge.pmd.annotation.InternalApi
public final class MatlabTokenKinds {
private MatlabTokenKinds() { /* Utility class */ }
public static final int EOF = 0;
public static final int SINGLE_LINE_COMMENT = 6;
public static final int MULTI_LINE_COMMENT = 7;
public static final int SEMI = 9;
public static final int LPAREN = 10;
public static final int RPAREN = 11;
public static final int LBRACE = 12;
public static final int RBRACE = 13;
public static final int LSBRACE = 14;
public static final int RSBRACE = 15;
public static final int AT = 16;
public static final int DOT = 17;
public static final int COMMA = 18;
public static final int QUESTIONMARK = 19;
public static final int DOUBLE_EQ = 20;
public static final int LOG_OR = 21;
public static final int LOG_AND = 22;
public static final int LSTE = 23;
public static final int GRTE = 24;
public static final int NEQ = 25;
public static final int EL_TIMES = 26;
public static final int EL_LEFTDIV = 27;
public static final int EL_RIGHTDIV = 28;
public static final int EL_EXP = 29;
public static final int EL_CCT = 30;
public static final int EQ = 31;
public static final int BIN_OR = 32;
public static final int BIN_AND = 33;
public static final int LST = 34;
public static final int GRT = 35;
public static final int COLON = 36;
public static final int PLUS = 37;
public static final int MINUS = 38;
public static final int NEG = 39;
public static final int TIMES = 40;
public static final int LEFTDIV = 41;
public static final int RIGHTDIV = 42;
public static final int EXP = 43;
public static final int BREAK = 44;
public static final int CASE = 45;
public static final int CATCH = 46;
public static final int CONTINUE = 47;
public static final int ELSE = 48;
public static final int ELSEIF = 49;
public static final int END = 50;
public static final int FOR = 51;
public static final int FUNCTION = 52;
public static final int GLOBAL = 53;
public static final int IF = 54;
public static final int OTHERWISE = 55;
public static final int PERSISTENT = 56;
public static final int RETURN = 57;
public static final int SWITCH = 58;
public static final int TRY = 59;
public static final int VARARGIN = 60;
public static final int WHILE = 61;
public static final int CLEAR = 62;
public static final int ID = 63;
public static final int LETTER = 64;
public static final int INT = 65;
public static final int FLOAT = 66;
public static final int EXPONENT = 67;
public static final int DIGIT = 68;
public static final int STRING = 69;
public static final int DSTRING = 70;
public static final int ESC_SEQ = 71;
public static final int UNICODE_ESC = 72;
public static final int OCTAL_ESC = 73;
public static final int HEX_DIGIT = 74;
public static final int OCTAL_DIGIT = 75;
public static final int TR = 76;
static final int DEFAULT = 0;
static final int TRANSPOSE = 1;
static final int IN_COMMENT = 2;
/** Returns a string describing the given token kind.
* Returns null if the kind is unknown.
*
* @param kind Kind of token
*
* @return A string describing the given kind
*/
public static @org.checkerframework.checker.nullness.qual.Nullable
String describe(int kind) {
return kind < 0 || kind >= tokenImage.length
? null
: tokenImage[kind];
}
/** Returns a new token manager for this language. The CharStream
* should be configured with the correct language-specific escaping
* and token document. This is not a published API, it's intended to
* be used as a basis for a CPD Tokenizer.
*/
@net.sourceforge.pmd.annotation.InternalApi
public static net.sourceforge.pmd.lang.TokenManager newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs) {
return new MatlabParserImplTokenManager(cs);
}
private static final
String[] tokenImage = {
"",
"\" \"",
"\"\\t\"",
"\"\\r\\n\"",
"\"\\n\"",
"\"%{\"",
"",
"\"%}\"",
"",
"\";\"",
"\"(\"",
"\")\"",
"\"{\"",
"\"}\"",
"\"[\"",
"\"]\"",
"\"@\"",
"\".\"",
"\",\"",
"\"?\"",
"\"==\"",
"\"||\"",
"\"&&\"",
"\"<=\"",
"\">=\"",
"\"~=\"",
"\".*\"",
"\"./\"",
"\".\\\\\"",
"\".^\"",
"\".\\\'\"",
"\"=\"",
"\"|\"",
"\"&\"",
"\"<\"",
"\">\"",
"\":\"",
"\"+\"",
"\"-\"",
"\"~\"",
"\"*\"",
"\"/\"",
"\"\\\\\"",
"\"^\"",
"\"break\"",
"\"case\"",
"\"catch\"",
"\"continue\"",
"\"else\"",
"\"elseif\"",
"\"end\"",
"\"for\"",
"\"function\"",
"\"global\"",
"\"if\"",
"\"otherwise\"",
"\"persistent\"",
"\"return\"",
"\"switch\"",
"\"try\"",
"\"varargin\"",
"\"while\"",
"\"clear\"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"\"\\\'\"",
};
/** Nams of the tokens, each index corresponds to a kind. See also {@link #describe(int)}. */
public static final java.util.List TOKEN_NAMES = java.util.Collections.unmodifiableList(java.util.Arrays.asList(tokenImage));
}