Module display

Builtin predicates for displaying features structures etc.

Contents

Predicate


Top of this page Contents Index of this package LiLFeS Documents LiLFeS Home Page Tsujii laboratory

Predicate

print/1

Formatprint(+$X)
Arguments
+$Xbot predicate or feature structure etc..
Display feature structure or predicate $X in the form that can read LiLFeS.Predicates and lists is also showed as feature structure.
> :- print(append([A|X], Y, [A|Z]) :- append(X,Y,Z)).
 กก
 (:-/2
 ,chead:(append/3
 ,arg1:[ $1
 | $2, 'list']
 ,arg2:$3
 ,arg3:[ $1
 | $4, 'list'])
 ,cbody:[ (append/3
 ,arg1:$2
 ,arg2:$3
 ,arg3:$4)]        ) 

printtostr/2

Formatprinttostr(+$X, -$Y)
Arguments
+$Xbot predicate or feature structure etc.
-$Ystring resulting string
See alsoprint/1
Display feature structure or predicate into string.

printAVM/1

FormatprintAVM(+$S)
Arguments
+$Sbot Feature structure
Display feature structure $S as AVM-tree form.
> :- printAVM(person & NAME\"John" & AGE\10 & FATHER\(NAME\"Tom" & AGE\40 & FATHER\(NAME\"Bob" & AGE\70))).
 กก
 |~person                             ~|
 | NAME:"John"                         |
 | AGE:10                              |
 |        |~person                  ~| |
 |        | NAME:"Tom"               | |
 |        | AGE:40                   | |
 | FATHER:|        |~person       ~| | |
 |        | FATHER:| NAME:"Bob"    | | |
 |        |        | AGE:70        | | |
 |_       |_       |_FATHER:person_|_|_|

printAVMtostr/2

FormatprintAVMtostr(+FS,-STR)
Arguments
+FSbotFeature Structure
-STRstringstring
See alsoprintAVM/1
Return feature structure to string by LiLFeS program.

Top of this page Contents Index of this package LiLFeS Documents LiLFeS Home Page Tsujii laboratory

This document is automatically created by lildoc on Fri Sep 24 14:13:57 2004