BrowserInformationΒΆ
hypertex.spad line 12 [edit on github]
This package makes available information about Spad constructors and operations.
- all_constructors: () -> Record(categories: List Symbol, domains: List Symbol, packages: List Symbol)
all_constructors()gives list of all constructor names, split into categories, domains and packages.
- ancestors: (SExpression, Boolean) -> List Record(form: SExpression, condition: SExpression)
ancestors(c, use_args?)computes ancestors of a constructor.
- constructor_documentation: Symbol -> String
constructor_documentation(n)gives documentation string for constructor with names. Returns empty string for undocumented constructors.
- constructor_form: Symbol -> SExpression
constructor_form(n)gives constructor form, that isS-expression (list) with constructor name and argument names for constructor with names.
- constructor_kind: Symbol -> Symbol
constructor_kind(s)gives constructor kind, that is one of category, domain, package.
- constructor_name?: Symbol -> Boolean
constructor_name?(s)returnstrueif and only ifsis a name of existing constructor.
- constructor_signature: (Symbol, List SExpression) -> SExpression
constructor_signature(s)gives constructor signature, that isS-expression (list) giving type of constructor and types of arguments.
- convert_pattern: String -> Union(SExpression, ErrorIndicator)
convert_pattern(n)converts search patternnto an internal form used bydo_match.
- default_name?: Symbol -> Boolean
default_name?(s)returnstrueif and only ifshas format of name of a default package, that is name ofsends in an ampersand.
- do_match: (SExpression, String) -> Boolean
do_match(p, s)returnstrueif and only ifsmatches to patternp.
- exports: SExpression -> Record(cats: List Record(form: SExpression, condition: SExpression), ops: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)))
exports(c)gives explicit exports of a constructor.
- exposed_constructor?: Symbol -> Boolean
exposed_constructor?(s)returnstrueif and only ifsis a name of an exposed constructor.
- filter_ops: (SExpression, List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))) -> List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))
filter_ops(p, ol)gives list of operations from ol with names matchingp.
- filter_symbols: (SExpression, List Symbol) -> List Symbol
filter_symbols(p, sl)gives list of symbols fromslwith names matchingp.
- group_by_condition: List Record(form: SExpression, condition: SExpression) -> List Record(grp_tag: SExpression, constrs: List Record(form: SExpression, condition: SExpression))
group_by_condition(ol)splits list of constructors with conditions depending on their conditions.
- group_by_condition: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)) -> List Record(grp_tag: SExpression, ops: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)))
group_by_condition(ol)splits list of operations depending on their conditions.
- group_by_implementation: (List SExpression, SExpression, List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))) -> List Record(grp_tag: SExpression, ops: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)))
group_by_condition(al,
df, ol) splits list of operations ol depending on their implementation. ol must be a list of operations from a domain with formdf, al must fully specify operations of the domain.
- group_by_origin: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)) -> List Record(grp_tag: SExpression, ops: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)))
group_by_origin(ol)splits list of operations depending on their origin.
- operations: (SExpression, Boolean) -> List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))
operations(c, use_args?)computes operation list of a constructor.
- ops_from_exports: () -> List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))
ops_from_exports()gives list of all exported operations computed from constructor exports.
- ops_from_libdb: () -> List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))
ops_from_libdb()gives list of all exported operations from libdb. This operation is present only to check compatibility with old code and will be removed in the future.
- parents: SExpression -> List Record(form: SExpression, condition: SExpression)
parents(c)gives parents (that is direct ancestors) of a constructor.
- search_constructors: (String, Symbol) -> Union(Record(categories: List Symbol, domains: List Symbol, packages: List Symbol), ErrorIndicator)
search_constructors(n, t)searches for constructors with name matchingn.tmay bek(meaning all constructors),c,dorpmeaning only categories, domains or packages are returned.
- search_documentation: String -> Union(Record(con_info: Record(categories: List Symbol, domains: List Symbol, packages: List Symbol), op_info: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))), ErrorIndicator)
search_documentation(n)searches for constructors and operations with documentation string matchingn.
- search_general: String -> Union(Record(con_info: Record(categories: List Symbol, domains: List Symbol, packages: List Symbol), op_info: List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))), ErrorIndicator)
search_general(n)searches constructors and operations with name matchingn.
- search_operations: String -> Union(List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)), ErrorIndicator)
search_operations(n)searches for operations with name matchingn.
- search_operations_libdb: String -> Union(List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)), ErrorIndicator)
search_operations_libdb(n)searches for all operations with name matchingnusing old code. This operation is present only to check compatibility with old code and will be removed in the future.
- search_opl: (String, List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))) -> Union(List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)), ErrorIndicator)
search_opl(n, ol)gives list of operations from ol with names matchingn.
- simp_ops_conditions: (List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String)), SExpression, SExpression) -> List Record(name: Symbol, sdl: List Record(signature: SExpression, condition: SExpression, origin: SExpression, documentation: String))
simp_ops_conditions(ol, cf, df)simplifies conditions of operations inolafter arguments indfare substituded for arguments incf.
- sublis_formal: (List SExpression, SExpression) -> SExpression
sublis_formal(args, expr)replaces formal variable symbols in expr by corresponding elements ofargs.