next up previous contents
Next: The Program ``malrul'' Up: The Malaga Programs Previous: The Program ``mallex''   Contents

The Program ``malmake''

The program malmake reads a project file, it checks if all grammar files needed do exist, and it translates all grammar files that have not yet been translated or whose source files have changed since they have been translated. malmake itself calls the programs malsym, mallex and malrul if needed. An example: assume you have written a morphology grammar whose grammar files are bundled in a project file `` english.pro'':


sym: rules/english.sym

all: rules/english.all

lex: rules/english.lex lex/adjectives.lex
lex: lex/particles.lex lex/suffixes.lex lex/verbs.lex
lex: lex/nouns.lex lex/abbreviations.lex lex/numbers.lex

mor: rules/english.mor

mallex: set hidden +semantics +syntax

malaga: set hidden +semantics
When executing `` malmake dmm.pro'' for the first time, the symbol file, the rule files and the lexicon file will be translated:

compiling "dmm.sym"
compiling "dmm.all"
compiling "dmm.mor"
compiling "dmm.lex"
project is up to date
The translation of a big lexicon can take a long time, since the allomorph rules have to be executed for each lexicon entry.



Bjoern Beutel