Change syntax of lexical rules
Proposition for lexicon in an external file:
rule (lex from "file.lex") {
match { N [phon = lex.phon] }
commands { N.phon = "new:" + lex.new_phon }
}
with the file file.lex
:
phon new_phon
p1 r1
p2 r2
p3 r3
Proposition for lexicon in the same file
rule {
match { N [phon = lex.phon] }
commands { N.phon = "new:" + lex.new_phon }
}
##BEGIN lex
phon new_phon
p1 r1
p2 r2
p3 r3
##END