• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_IDL_TOKEN_H
17 #define OHOS_IDL_TOKEN_H
18 
19 namespace OHOS {
20 namespace Idl {
21 enum class Token {
22     UNKNOWN              = 0,
23     // types
24     BOOLEAN,
25     CHAR,
26     BYTE,
27     SHORT,
28     INTEGER,
29     LONG,
30     FLOAT,
31     DOUBLE,
32     STRING,
33     LIST,
34     MAP,
35     // keywords
36     IN,
37     INTERFACE,
38     ONEWAY,
39     OUT,
40     INOUT,
41     SEQUENCEABLE,
42     // symbols
43     DOT,   // '.'
44     COMMA,   // ','
45     SEMICOLON,   // ';'
46     BRACES_LEFT,   // '{'
47     BRACES_RIGHT,   // '}'
48     BRACKETS_LEFT,   // '['
49     BRACKETS_RIGHT,   // ']'
50     PARENTHESES_LEFT,   // '('
51     PARENTHESES_RIGHT,   // ')'
52     ANGLE_BRACKETS_LEFT,   // '<'
53     ANGLE_BRACKETS_RIGHT,   // '>'
54     // others
55     IDENTIFIER,
56     COMMENT_BLOCK,
57     COMMENT_LINE,
58     END_OF_FILE,
59 };
60 } // namespace Idl
61 } // namespace OHOS
62 #endif // OHOS_IDL_TOKEN_H
63