• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 MAPLEBE_MDGEN_INCLUDE_MDTOKENS_H
17 #define MAPLEBE_MDGEN_INCLUDE_MDTOKENS_H
18 enum MDTokenKind {
19     /* special symbols */
20     kMDError,
21     kMDEOF,
22     kMDInvalid,
23 
24     /* normal symbols */
25     kMDOpenParen,   /* ( */
26     kMDCloseParen,  /* ) */
27     kMDOpenBrace,   /* { */
28     kMDCloseBrace,  /* } */
29     kMDOpenSquare,  /* [ */
30     kMDCloseSquare, /* ] */
31     kMDEqual,       /* = */
32     kMDSemi,        /* ; */
33     kMDComma,       /* , */
34     kMDColon,       /* : */
35     kMDLess,        /* < */
36     kMDGreater,     /* > */
37     kMDLgAnd,       /* & */
38     kMDLgOr,        /* | */
39 
40     kMDIdentifier,
41     /* const values */
42     kMDIntVal,
43     kMDFloatVal,
44     kMDDoubleVal,
45 
46     /* keywords */
47     kMDDef,
48     kMDClass,
49     kMDAnonClass,
50     kMDDefType,
51 };
52 
53 #endif /* MAPLEBE_MDGEN_INCLUDE_MDTOKENS_H */