SpadDoc¶
sdoc.spad line 1 [edit on github]
This package provides simple Spad documentation for use in the interpreter and the MCP server.
- constructorDocumentation: Symbol -> Void
constructorDocumentation(term)shows the documentation of the constructorterm.
- getConstructorDocumentation: Symbol -> String
getConstructorDocumentation(term)returns the documentation of the constructortermas a string.
- getOperationDocumentation: Symbol -> String
getOperationDocumentation(op)returns the documentation of the operationopas a string.
- listCategories: Symbol -> List Symbol
listCategories(cat)returns a list of the categories matching the categoriescat. Convenience and temporary function.
- listConstructors: Symbol -> Record(categories: List Symbol, domains: List Symbol, packages: List Symbol)
listConstructors(const)returns a list of the categories, domains, and packages that the constructorconstbelongs to. For example: example{listConstructors(‘AbelianMonoidRing)} example{listConstructors(“Int*”)}
- listDomains: Symbol -> List Symbol
listDomains(dom)returns a list of the domains matching the domainsdom. Convenience and temporary function.