|
Monero
|
Classes | |
| class | _NullDict |
| class | Node |
| class | Define |
| class | Include |
| class | Goto |
| class | Expr |
| class | Return |
| class | Delete |
| class | Friend |
| class | Using |
| class | Parameter |
| class | _GenericDeclaration |
| class | VariableDeclaration |
| class | Typedef |
| class | _NestedType |
| class | Union |
| class | Enum |
| class | Class |
| class | Struct |
| class | Function |
| class | Method |
| class | Type |
| class | TypeConverter |
| class | AstBuilder |
Functions | |
| reversed (seq) | |
| next (obj) | |
| BuilderFromSource (source, filename) | |
| PrintIndentifiers (filename, should_print) | |
| PrintAllIndentifiers (filenames, should_print) | |
| main (argv) | |
Variables | |
| str | __author__ = 'nnorwitz@google.com (Neal Norwitz)' |
| VISIBILITY_PUBLIC | |
| VISIBILITY_PROTECTED | |
| VISIBILITY_PRIVATE | |
| int | FUNCTION_NONE = 0x00 |
| int | FUNCTION_CONST = 0x01 |
| int | FUNCTION_VIRTUAL = 0x02 |
| int | FUNCTION_PURE_VIRTUAL = 0x04 |
| int | FUNCTION_CTOR = 0x08 |
| int | FUNCTION_DTOR = 0x10 |
| int | FUNCTION_ATTRIBUTE = 0x20 |
| int | FUNCTION_UNKNOWN_ANNOTATION = 0x40 |
| int | FUNCTION_THROW = 0x80 |
| int | FUNCTION_OVERRIDE = 0x100 |
| str | _INTERNAL_TOKEN = 'internal' |
| str | _NAMESPACE_POP = 'ns-pop' |
Generate an Abstract Syntax Tree (AST) for C++.
| cpp.ast.BuilderFromSource | ( | source, | |
| filename ) |
Utility method that returns an AstBuilder from source code. Args: source: 'C++ source code' filename: 'file1' Returns: AstBuilder
| cpp.ast.main | ( | argv | ) |
| cpp.ast.next | ( | obj | ) |
| cpp.ast.PrintAllIndentifiers | ( | filenames, | |
| should_print ) |
Prints all identifiers for each C++ source file in filenames. Args: filenames: ['file1', 'file2', ...] should_print: predicate with signature: bool Function(token)
| cpp.ast.PrintIndentifiers | ( | filename, | |
| should_print ) |
Prints all identifiers for a C++ source file. Args: filename: 'file1' should_print: predicate with signature: bool Function(token)
| cpp.ast.reversed | ( | seq | ) |
|
private |
|
protected |
| int cpp.ast.FUNCTION_ATTRIBUTE = 0x20 |
| int cpp.ast.FUNCTION_CONST = 0x01 |
| int cpp.ast.FUNCTION_CTOR = 0x08 |
| int cpp.ast.FUNCTION_DTOR = 0x10 |
| int cpp.ast.FUNCTION_NONE = 0x00 |
| int cpp.ast.FUNCTION_OVERRIDE = 0x100 |
| int cpp.ast.FUNCTION_PURE_VIRTUAL = 0x04 |
| int cpp.ast.FUNCTION_THROW = 0x80 |
| int cpp.ast.FUNCTION_UNKNOWN_ANNOTATION = 0x40 |
| int cpp.ast.FUNCTION_VIRTUAL = 0x02 |
| cpp.ast.VISIBILITY_PRIVATE |
| cpp.ast.VISIBILITY_PROTECTED |
| cpp.ast.VISIBILITY_PUBLIC |