001    /* Generated By:JavaCC: Do not edit this line. ProtoParserConstants.java */
002    /**
003     * Licensed to the Apache Software Foundation (ASF) under one or more
004     * contributor license agreements.  See the NOTICE file distributed with
005     * this work for additional information regarding copyright ownership.
006     * The ASF licenses this file to You under the Apache License, Version 2.0
007     * (the "License"); you may not use this file except in compliance with
008     * the License.  You may obtain a copy of the License at
009     *
010     *      http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    package org.fusesource.hawtbuf.proto.compiler.parser;
019    
020    public interface ProtoParserConstants {
021    
022      int EOF = 0;
023      int IMPORT = 8;
024      int PACKAGE = 9;
025      int SERVICE = 10;
026      int RPC = 11;
027      int OPTION = 12;
028      int MESSAGE = 13;
029      int EXTENSIONS = 14;
030      int EXTEND = 15;
031      int ENUM = 16;
032      int GROUP = 17;
033      int REQURIED = 18;
034      int OPTIONAL = 19;
035      int REPEATED = 20;
036      int RETURNS = 21;
037      int TO = 22;
038      int MAX = 23;
039      int LBRACE = 24;
040      int RBRACE = 25;
041      int EQUALS = 26;
042      int SEMICOLON = 27;
043      int LBRACKET = 28;
044      int RBRACKET = 29;
045      int LPAREN = 30;
046      int RPAREN = 31;
047      int PERIOD = 32;
048      int COMMA = 33;
049      int INTEGER = 34;
050      int DECIMAL_LITERAL = 35;
051      int HEX_LITERAL = 36;
052      int OCTAL_LITERAL = 37;
053      int FLOAT = 38;
054      int EXPONENT = 39;
055      int STRING = 40;
056      int ID = 41;
057    
058      int DEFAULT = 0;
059      int COMMENT = 1;
060    
061      String[] tokenImage = {
062        "<EOF>",
063        "\" \"",
064        "\"\\t\"",
065        "\"\\n\"",
066        "\"\\r\"",
067        "\"//\"",
068        "<token of kind 6>",
069        "<token of kind 7>",
070        "\"import\"",
071        "\"package\"",
072        "\"service\"",
073        "\"rpc\"",
074        "\"option\"",
075        "\"message\"",
076        "\"extensions\"",
077        "\"extend\"",
078        "\"enum\"",
079        "\"group\"",
080        "\"required\"",
081        "\"optional\"",
082        "\"repeated\"",
083        "\"returns\"",
084        "\"to\"",
085        "\"max\"",
086        "\"{\"",
087        "\"}\"",
088        "\"=\"",
089        "\";\"",
090        "\"[\"",
091        "\"]\"",
092        "\"(\"",
093        "\")\"",
094        "\".\"",
095        "\",\"",
096        "<INTEGER>",
097        "<DECIMAL_LITERAL>",
098        "<HEX_LITERAL>",
099        "<OCTAL_LITERAL>",
100        "<FLOAT>",
101        "<EXPONENT>",
102        "<STRING>",
103        "<ID>",
104      };
105    
106    }