Format | print(+$X) | |||
---|---|---|---|---|
Arguments |
| |||
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)] ) |
Format | printtostr(+$X, -$Y) | ||||||
---|---|---|---|---|---|---|---|
Arguments |
| ||||||
See also | print/1 | ||||||
Display feature structure or predicate into string. |
Format | printAVM(+$S) | |||
---|---|---|---|---|
Arguments |
| |||
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_|_|_| |
Format | printAVMtostr(+FS,-STR) | ||||||
---|---|---|---|---|---|---|---|
Arguments |
| ||||||
See also | printAVM/1 | ||||||
Return feature structure to string by LiLFeS program. |