1#===- enumerations.py - Python Enumerations ------------------*- python -*--===#
2#
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8#===------------------------------------------------------------------------===#
9
10"""
11Clang Enumerations
12==================
13
14This module provides static definitions of enumerations that exist in libclang.
15
16Enumerations are typically defined as a list of tuples. The exported values are
17typically munged into other types or classes at module load time.
18
19All enumerations are centrally defined in this file so they are all grouped
20together and easier to audit. And, maybe even one day this file will be
21automatically generated by scanning the libclang headers!
22"""
23
24# Maps to CXTokenKind. Note that libclang maintains a separate set of token
25# enumerations from the C++ API.
26TokenKinds = [
27    ('PUNCTUATION', 0),
28    ('KEYWORD', 1),
29    ('IDENTIFIER', 2),
30    ('LITERAL', 3),
31    ('COMMENT', 4),
32]
33
34__all__ = ['TokenKinds']
35