expands a term to a clause....
Move to
=> <=
Darueber Spitze
See also
expand_term/2
phrase/2
IF Computer > MINERVA > Manual > Reference > Predicates > Grammar rules > expand_term/2

expand_term/2

expands a term to a clause.

expand_term(+Term, -ExpandedTerm)

If Term is a grammar rule of the form (Head --> Body) then expand_term expands Term to a clause and unifies it with ExpandedTerm.

Arguments

Term                   term
ExpandedTerm           clause

Examples

expand_term((eval(Z) --> expr(X), ['+'], expr(Y), {Z is X+Y}),T). Succeeds with unification T <- (eval(Z,L,R) :- expr(X,L,L1), L1 = [(+)|L2], expr(Y,L2,R), Z is X+Y).

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

phrase/2.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Sprache
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/grammar_rules/expand_term/home_de.html
published 2008/8/25 update 1998/8/11 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS