| # List Prolog Interpreter | |
| # Prerequisites | |
| * Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/. | |
| * You may need to install gawk using Homebrew. | |
| * Install <a href="https://github.com/soimort/translate-shell">Translation Shell</a> on Mac, etc. | |
| Change line in & culturaltranslationtool/ctt2.pl | |
| trans_location("../../../gawk/trans").& | |
| to correct location of <a href="https://github.com/soimort/translate-shell">trans</a>. | |
| # 1. Install manually | |
| Download <a href="http://github.com/luciangreen/listprologinterpreter/">this repository</a>, the <a href="https://github.com/luciangreen/Languages">Languages repository</a> and <a href="https://github.com/luciangreen/culturaltranslationtool">Cultural Translation Tool</a> into the same folder. | |
| # 2. Or Install from List Prolog Package Manager (LPPM) | |
| * Download the <a href="https://github.com/luciangreen/List-Prolog-Package-Manager">LPPM Repository</a>: | |
| & | |
| mkdir GitHub | |
| cd GitHub/ | |
| git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git | |
| cd List-Prolog-Package-Manager | |
| swipl | |
| ['lppm']. | |
| lppm_install("luciangreen","listprologinterpreter"). | |
| halt | |
| & | |
| # Running | |
| * Download the repository to your machine. In Shell: | |
| cd listprologinterpreter | |
| swipl | |
| ['listprolog']. | |
| * Running the tests | |
| To run all tests, enter: | |
| &test(off,NTotal,Score).& | |
| * To run a specific test: | |
| &test1(off,TestNumber,Passed).& | |
| where TestNumber is the test number from <a href="https://github.com/luciangreen/listprologinterpreter/blob/master/lpiverify4.pl">lpiverify4.pl</a>. | |