Changes between Version 1 and Version 2 of InstallTraleSLD

Nov 10, 2010, 12:37:42 AM (8 years ago)



  • InstallTraleSLD

    v1 v2  
     173== Obtaining TRALE ==
     175Current versions of [ TRALE] contain Kahina as well as the Prolog code to connect [ TRALE's source-level debugger] to Kahina. If you have access to TRALE's Subversion repository, you can obtain the latest version from there. Otherwise, ask for an archive and unpack it.
     177== Using TRALE with the distributed version of Kahina ==
     179Assuming a Unix-like environment (counting Cygwin on Windows), you start TRALE by running the {{{trale}}} script found in the {{{trale}}} directory of the TRALE distribution. Before running it, make sure that the environment variable {{{TRALE_HOME}}} is not set or set to the path {{{trale}}} directory that contains the up-to-date version you wish to use. To use TRALE's source-level debugger with Kahina, you need to run {{{trale}}} with the option {{{-d}}}, like this:
     182trale -d
     185== Using TRALE with a development version of Kahina ==
     187To always use the latest and greatest version of Kahina and use new features as soon as they are added, you need a [ Subversion] client and [ Ant] installed. Use the following command to obtain a development version of Kahina:
     190svn checkout kahina
     191cd kahina
     195This will create a directory called {{{kahina}}} in the current directory, containing the Kahina sources, and compile them.
     197Every time you want to update Kahina to the latest version, run the following from the {{{kahina}}} directory.
     200svn update
     204To tell TRALE to use the development version, start it with the environment variable {{{KAHINA_TRUNK}}} set to point to the {{{kahina}}} directory, e.g. like this:
     207export KAHINA_TRUNK=/home/ke/workspace/kahina
     208trale -d
     211If you always want to work with the development version, you can include the first line in your shell's startup script. To use the version distributed with TRALE again, just unset {{{KAHINA_TRUNK}}}, like this:
     214unset KAHINA_TRUNK
     217== First steps ==
     219After starting TRALE using {{{trale -d}}}, you can try if it works by using the predicates {{{dcompile_gram/1}}} to compile a TRALE grammar and {{{drec/1}}} to parse a sentence, or (experimentally) {{{dquery/1}}} to resolve a query in the ALE programming language. Each of these commands should bring up the Kahina GUI (you can read more about their function and usage [ in the TRALE documentation]. Alternatively, you can just ask the following query:
     225This will start the GUI but make the Prolog prompt inaccessible, in return giving you the possibility to starting compilation processes and parsing via the '''Parse''' menu in the GUI. Closing the GUI will return you to the Prolog prompt. You can do this at any time while debugging, resulting in the abortion of the compilation/parsing/query resulution process.