| 35 | |
| 36 | |
| 37 | class Clinic: |
| 38 | |
| 39 | presets_text = """ |
| 40 | preset block |
| 41 | everything block |
| 42 | methoddef_ifndef buffer 1 |
| 43 | docstring_prototype suppress |
| 44 | parser_prototype suppress |
| 45 | cpp_if suppress |
| 46 | cpp_endif suppress |
| 47 | |
| 48 | preset original |
| 49 | everything block |
| 50 | methoddef_ifndef buffer 1 |
| 51 | docstring_prototype suppress |
| 52 | parser_prototype suppress |
| 53 | cpp_if suppress |
| 54 | cpp_endif suppress |
| 55 | |
| 56 | preset file |
| 57 | everything file |
| 58 | methoddef_ifndef file 1 |
| 59 | docstring_prototype suppress |
| 60 | parser_prototype suppress |
| 61 | impl_definition block |
| 62 | |
| 63 | preset buffer |
| 64 | everything buffer |
| 65 | methoddef_ifndef buffer 1 |
| 66 | impl_definition block |
| 67 | docstring_prototype suppress |
| 68 | impl_prototype suppress |
| 69 | parser_prototype suppress |
| 70 | |
| 71 | preset partial-buffer |
| 72 | everything buffer |
| 73 | methoddef_ifndef buffer 1 |
| 74 | docstring_prototype block |
| 75 | impl_prototype suppress |
| 76 | methoddef_define block |
| 77 | parser_prototype block |
| 78 | impl_definition block |
| 79 | |
| 80 | """ |
| 81 | |
| 82 | def __init__( |
| 83 | self, |
| 84 | language: CLanguage, |
| 85 | printer: BlockPrinter | None = None, |
| 86 | *, |
| 87 | filename: str, |
| 88 | limited_capi: bool, |
| 89 | verify: bool = True, |
| 90 | ) -> None: |
| 91 | # maps strings to Parser objects. |
| 92 | # (instantiated from the "parsers" global.) |
| 93 | self.parsers: dict[str, Parser] = {} |
| 94 | self.language: CLanguage = language |
no outgoing calls
searching dependent graphs…