OpenMathPackage

omdev.spad line 236 [edit on github]

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

OMlistCDs : () -> List(String)

OMlistCDs() lists all the CDs supported by FriCAS.

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 FriCAS.

OMreadFile : String -> Any

OMreadFile(f) reads an OpenMath object from f and passes it to FriCAS.

OMreadStr : String -> Any

OMreadStr(f) reads an OpenMath object from f and passes it to FriCAS.

OMsupportsCD? : String -> Boolean

OMsupportsCD?(cd) returns true if FriCAS supports cd, false otherwise.

OMsupportsSymbol? : (String, String) -> Boolean

OMsupportsSymbol?(s, cd) returns true if FriCAS supports symbol s from CD cd, false otherwise.

OMunhandledSymbol : (String, String) -> Exit

OMunhandledSymbol(s, cd) raises an error if FriCAS reads a symbol which it is unable to handle. Note that this is different from an unexpected symbol.