next up previous contents
Next: Exiting Prolog and Breaking Up: Prolog Preliminaries Previous: TRALE-EXTENSION:Running TRALE   Contents


Compiling a Grammar

[Code]
Once ALE has been loaded, you can load and compile an ALE grammar as follows:

| ?- compile_gram(hpsg).
where hpsg.pl, for example, is the name of your grammar file (or the name of the file that loads different components of a grammar from other files). This consults the grammar as Prolog source, and compiles it as ALE source.

NOTE: if you only load your grammar with a Prolog command:

| ?- consult(hpsg).
ALE will not be able to parse or execute other queries with it. You must use compile_gram/0 (if already consulted) or compile_gram/2.



TRALE User's Manual