jimregan / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

No error or warning, if in lex file two LEXICON entries have the same name #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In lex file I add by a mistake two LEXICON entries with the same name, for 
example:

LEXICON AddVerbrag11mely
+Verb:0     Caserag1mely;  ! should be Caserag11mely, but forgot to change

LEXICON Caserag1mely       ! should be Caserag11mely, but forgot to change
+IndefSg1:^+cIndefSg1^§igeomely§k    #;    ! ek/ok

and 
LEXICON AddVerbrag1mely
+Verb:0     Caserag1mely;

LEXICON Caserag1mely
+IndefSg1:^+cIndefSg1^§igeomely§k    #;    ! ek/ok

What is the expected output? What do you see instead?
Expected is an error message or at least a warning
Instead, foma takes one of the identical entries, and uses that,
which is a hard to grasp behaviour.

Original issue reported on code.google.com by eleonor...@gmx.net on 12 Mar 2012 at 10:36