[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.