Add a declaration to the parser context.
(self, decl: Any)
| 1138 | self._sorts[sort.name()] = sort |
| 1139 | |
| 1140 | def add_decl(self, decl: Any) -> None: |
| 1141 | """Add a declaration to the parser context.""" |
| 1142 | if hasattr(decl, "name"): |
| 1143 | self._decls[decl.name()] = decl |
| 1144 | |
| 1145 | def from_string(self, s: str) -> list: |
| 1146 | """Parse SMT-LIB2 string (not supported).""" |