Next: Evaluating Definite Clause Queries
Up: Running and Debugging ALE
Previous: Evaluating Descriptions
  Contents
Hiding Types and Features
[Code]
With a feature structure system such as ALE, grammars and
programs often manipulate very large feature structures. To aid in
debugging, two queries allow the user to focus attention on particular
types and features by supressing the printing of other types and
features.
The following command supresses printing of a type:
| ?- no_write_type(
).
After no_write_type(
) is called, the type
will no
longer be displayed during printing. To restore the type
to
printed status, use:
| ?- write_type(
).
If
is a variable in a call to write_type/1, then all types
are subsequently printed. Alternatively, the following query restores
printing of all types:
| ?- write_types.
Features and their associated values can be supressed in much the same
way as types. In particular, the following command blocks the feature
and its values from being printed:
| ?- no_write_feat(
).
To restore printing of feature
, use:
| ?- write_feat(
).
If
is a variable here, all features will subsequently be printed.
The following special query also restores printing of all
features.
| ?- write_feats.
Next: Evaluating Definite Clause Queries
Up: Running and Debugging ALE
Previous: Evaluating Descriptions
  Contents
TRALE User's Manual