OpenMathPackageΒΆ

omdev.spad line 236

OpenMathPackage provides some simple utilities to make reading OpenMath objects easier.

OMlistCDs: () -> List String
OMlistCDs() lists all the CDs supported by AXIOM.
OMlistSymbols: String -> List String
OMlistSymbols(cd) lists all the symbols in cd.
OMread: OpenMathDevice -> Any
OMread(dev) reads an OpenMath object from dev and passes it to AXIOM.
OMreadFile: String -> Any
OMreadFile(f) reads an OpenMath object from f and passes it to AXIOM.
OMreadStr: String -> Any
OMreadStr(f) reads an OpenMath object from f and passes it to AXIOM.
OMsupportsCD?: String -> Boolean
OMsupportsCD?(cd) returns true if AXIOM supports cd, false otherwise.
OMsupportsSymbol?: (String, String) -> Boolean
OMsupportsSymbol?(s, cd) returns true if AXIOM supports symbol s from CD cd, false otherwise.
OMunhandledSymbol: (String, String) -> Exit
OMunhandledSymbol(s, cd) raises an error if AXIOM reads a symbol which it is unable to handle. Note that this is different from an unexpected symbol.