All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.modelica.ast.ModelicaTokenKinds Maven / Gradle / Ivy

The newest version!
/* Generated By:JJTree&JavaCC: Do not edit this line. ModelicaParserImplConstants.java */
package net.sourceforge.pmd.lang.modelica.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 ModelicaTokenKinds {
     private ModelicaTokenKinds() { /* Utility class */ }
 

  public static final   int EOF = 0;
  public static final   int BOM = 1;
  public static final   int LPAREN = 2;
  public static final   int RPAREN = 3;
  public static final   int LCURL = 4;
  public static final   int RCURL = 5;
  public static final   int LSQUARE = 6;
  public static final   int RSQUARE = 7;
  public static final   int SC = 8;
  public static final   int EQ_SIGN = 9;
  public static final   int COMMA = 10;
  public static final   int DOT = 11;
  public static final   int COLON = 12;
  public static final   int IMPORT = 13;
  public static final   int WITHIN = 14;
  public static final   int ENCAPSULATED = 15;
  public static final   int PARTIAL = 16;
  public static final   int FINAL = 17;
  public static final   int CLASS = 18;
  public static final   int MODEL = 19;
  public static final   int OPERATOR = 20;
  public static final   int RECORD = 21;
  public static final   int BLOCK = 22;
  public static final   int EXPANDABLE = 23;
  public static final   int CONNECTOR = 24;
  public static final   int TYPE = 25;
  public static final   int PACKAGE = 26;
  public static final   int PURE = 27;
  public static final   int IMPURE = 28;
  public static final   int FUNCTION = 29;
  public static final   int EXTENDS = 30;
  public static final   int END = 31;
  public static final   int ENUMERATION = 32;
  public static final   int PUBLIC = 33;
  public static final   int PROTECTED = 34;
  public static final   int EXTERNAL = 35;
  public static final   int REDECLARE = 36;
  public static final   int INNER = 37;
  public static final   int OUTER = 38;
  public static final   int REPLACEABLE = 39;
  public static final   int CONSTRAINEDBY = 40;
  public static final   int FLOW = 41;
  public static final   int STREAM = 42;
  public static final   int DISCRETE = 43;
  public static final   int PARAMETER = 44;
  public static final   int CONSTANT = 45;
  public static final   int INPUT = 46;
  public static final   int OUTPUT = 47;
  public static final   int DER = 48;
  public static final   int CONNECT = 49;
  public static final   int IF = 50;
  public static final   int ASSIGN = 51;
  public static final   int EACH = 52;
  public static final   int INITIAL = 53;
  public static final   int EQUATION = 54;
  public static final   int ALGORITHM = 55;
  public static final   int ANNOTATION = 56;
  public static final   int BREAK = 57;
  public static final   int RETURN = 58;
  public static final   int THEN = 59;
  public static final   int ELSEIF = 60;
  public static final   int ELSE = 61;
  public static final   int FOR = 62;
  public static final   int LOOP = 63;
  public static final   int IN = 64;
  public static final   int WHILE = 65;
  public static final   int WHEN = 66;
  public static final   int ELSEWHEN = 67;
  public static final   int OR = 68;
  public static final   int AND = 69;
  public static final   int NOT = 70;
  public static final   int TRUE = 71;
  public static final   int FALSE = 72;
  public static final   int LT = 73;
  public static final   int LE = 74;
  public static final   int GT = 75;
  public static final   int GE = 76;
  public static final   int EQ = 77;
  public static final   int NEQ = 78;
  public static final   int PLUS = 79;
  public static final   int MINUS = 80;
  public static final   int ASTERISK = 81;
  public static final   int SLASH = 82;
  public static final   int HAT = 83;
  public static final   int DOT_PLUS = 84;
  public static final   int DOT_MINUS = 85;
  public static final   int DOT_ASTERISK = 86;
  public static final   int DOT_SLASH = 87;
  public static final   int DOT_HAT = 88;
  public static final   int IDENT = 89;
  public static final   int Q_IDENT = 90;
  public static final   int S_CHAR = 91;
  public static final   int NONDIGIT = 92;
  public static final   int STRING = 93;
  public static final   int Q_CHAR = 94;
  public static final   int S_ESCAPE = 95;
  public static final   int DIGIT = 96;
  public static final   int UNSIGNED_INTEGER = 97;
  public static final   int UNSIGNED_NUMBER = 98;
  public static final   int WS = 99;
  public static final   int LINE_COMMENT = 100;
  public static final   int MULTI_LINE_COMMENT = 102;

  static final   int DEFAULT = 0;
  static final   int IN_MULTI_LINE_COMMENT = 1;
  static final   int IN_PREPROCESSOR_OUTPUT_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 ModelicaParserImplTokenManager(cs);
  }

    private static final
            
  String[] tokenImage = {
    "",
    "\"\\ufeff\"",
    "\"(\"",
    "\")\"",
    "\"{\"",
    "\"}\"",
    "\"[\"",
    "\"]\"",
    "\";\"",
    "\"=\"",
    "\",\"",
    "\".\"",
    "\":\"",
    "\"import\"",
    "\"within\"",
    "\"encapsulated\"",
    "\"partial\"",
    "\"final\"",
    "\"class\"",
    "\"model\"",
    "\"operator\"",
    "\"record\"",
    "\"block\"",
    "\"expandable\"",
    "\"connector\"",
    "\"type\"",
    "\"package\"",
    "\"pure\"",
    "\"impure\"",
    "\"function\"",
    "\"extends\"",
    "\"end\"",
    "\"enumeration\"",
    "\"public\"",
    "\"protected\"",
    "\"external\"",
    "\"redeclare\"",
    "\"inner\"",
    "\"outer\"",
    "\"replaceable\"",
    "\"constrainedby\"",
    "\"flow\"",
    "\"stream\"",
    "\"discrete\"",
    "\"parameter\"",
    "\"constant\"",
    "\"input\"",
    "\"output\"",
    "\"der\"",
    "\"connect\"",
    "\"if\"",
    "\":=\"",
    "\"each\"",
    "\"initial\"",
    "\"equation\"",
    "\"algorithm\"",
    "\"annotation\"",
    "\"break\"",
    "\"return\"",
    "\"then\"",
    "\"elseif\"",
    "\"else\"",
    "\"for\"",
    "\"loop\"",
    "\"in\"",
    "\"while\"",
    "\"when\"",
    "\"elsewhen\"",
    "\"or\"",
    "\"and\"",
    "\"not\"",
    "\"true\"",
    "\"false\"",
    "\"<\"",
    "\"<=\"",
    "\">\"",
    "\">=\"",
    "\"==\"",
    "\"<>\"",
    "\"+\"",
    "\"-\"",
    "\"*\"",
    "\"/\"",
    "\"^\"",
    "\".+\"",
    "\".-\"",
    "\".*\"",
    "\"./\"",
    "\".^\"",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "\"/*\"",
    "\"*/\"",
    "",
  
  };

  /** 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));
            

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy