|
Monero
|
Functions | |
| def | IsKeyword (token) |
| def | IsBuiltinType (token) |
Variables | |
| str | __author__ = 'nnorwitz@google.com (Neal Norwitz)' |
| try : | |
| set | TYPES = set('bool char int long short double float void wchar_t unsigned signed'.split()) |
| set | TYPE_MODIFIERS = set('auto register const inline extern static virtual volatile mutable'.split()) |
| set | ACCESS = set('public protected private friend'.split()) |
| set | CASTS = set('static_cast const_cast dynamic_cast reinterpret_cast'.split()) |
| set | OTHERS = set('true false asm class namespace using explicit this operator sizeof'.split()) |
| set | OTHER_TYPES = set('new delete typedef struct union enum typeid typename template'.split()) |
| set | CONTROL = set('case switch default if else return goto'.split()) |
| set | EXCEPTION = set('try catch throw'.split()) |
| set | LOOP = set('while do for break continue'.split()) |
| set | ALL = TYPES | TYPE_MODIFIERS | ACCESS | CASTS | OTHERS | OTHER_TYPES | CONTROL | EXCEPTION | LOOP |
C++ keywords and helper utilities for determining keywords.
| def cpp.keywords.IsBuiltinType | ( | token | ) |
| def cpp.keywords.IsKeyword | ( | token | ) |
|
private |
| set cpp.keywords.ACCESS = set('public protected private friend'.split()) |
| set cpp.keywords.ALL = TYPES | TYPE_MODIFIERS | ACCESS | CASTS | OTHERS | OTHER_TYPES | CONTROL | EXCEPTION | LOOP |
| set cpp.keywords.CASTS = set('static_cast const_cast dynamic_cast reinterpret_cast'.split()) |
| set cpp.keywords.CONTROL = set('case switch default if else return goto'.split()) |
| set cpp.keywords.EXCEPTION = set('try catch throw'.split()) |
| set cpp.keywords.LOOP = set('while do for break continue'.split()) |
| set cpp.keywords.OTHER_TYPES = set('new delete typedef struct union enum typeid typename template'.split()) |
| set cpp.keywords.OTHERS = set('true false asm class namespace using explicit this operator sizeof'.split()) |
| cpp.keywords.try : |
| set cpp.keywords.TYPE_MODIFIERS = set('auto register const inline extern static virtual volatile mutable'.split()) |
| set cpp.keywords.TYPES = set('bool char int long short double float void wchar_t unsigned signed'.split()) |