MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / from_string

Method from_string

lean_py/z3/solver.py:1145–1149  ·  view source on GitHub ↗

Parse SMT-LIB2 string (not supported).

(self, s: str)

Source from the content-addressed store, hash-verified

1143 self._decls[decl.name()] = decl
1144
1145 def from_string(self, s: str) -> list:
1146 """Parse SMT-LIB2 string (not supported)."""
1147 raise NotImplementedError(
1148 "ParserContext.from_string not supported: Lean uses its own syntax"
1149 )
1150
1151 def __repr__(self) -> str:
1152 return f"ParserContext({len(self._sorts)} sorts, {len(self._decls)} decls)"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected