28.01.2015 Views

AI 08226 Prolog (PROgramming in LOGic) - Department of ...

AI 08226 Prolog (PROgramming in LOGic) - Department of ...

AI 08226 Prolog (PROgramming in LOGic) - Department of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Terms and variables<br />

7<br />

NO such th<strong>in</strong>g as GLOBAL variable<br />

nearest is set <strong>of</strong> predicates as functor/arity<br />

comb<strong>in</strong>ations<br />

Terms beg<strong>in</strong>n<strong>in</strong>g with Uppercase Alpha<br />

characters are variables<br />

cost(Th<strong>in</strong>g, X, Y).<br />

Tokens start<strong>in</strong>g with lower case characters are<br />

not.<br />

cost(robot, X, Y).<br />

cost(amigabot, , X, Y).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!