Next: Example Module, Previous: Guile API, Up: Guile
[Contents][Index]
GNU Dico provides the following Scheme primitives for accessing various
fields of the strat
and key
arguments to match
callback:
Return ‘#t’ if obj is a Dico key object.
Extract the lookup word from the key object key.
Create new key object from strategy strat and word word.
Return true if strat has a selector (see Strategy Selectors).
Return true if key matches word as per strategy selector strat. The key is a ‘Dico Key’ object.
Return the name of strategy strat.
Return a textual description of the strategy strat.
Return true
if strat is a default
strategy. See default strategy.
Register a new strategy. If fun is given it will be used as a callback for that strategy. Notice, that you can use strategies implemented in Guile in your C code as well (see strategy).
The selector function must be declared as follows:
(define (fun key word) ...)
It must return #t
if key matches word, and
#f
otherwise.
Next: Example Module, Previous: Guile API, Up: Guile
[Contents][Index]