Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 571 Bytes

HowToUse.md

File metadata and controls

27 lines (20 loc) · 571 Bytes

How To Use this library

Install into your project

$ composer.phar require trismegiste/wam-prolog

In standalone mode

Open a command line interface and type :

php prolog.php

Using this library

See the file test WAMService1Test.php for a real example

$wam = new WAMService();
$solve = $wam->runQuery("consult('" . __DIR__ . '/fixtures/' . "fixtures1.pro').");
$solve = $wam->runQuery("grandmother(X, luke).");

See a full example in real life

Try Trismegiste/Hiragana