1
0
forked from GitHub/gf-core

lib/src/*/Numeral*.gf: fix inconsistent inheritance form Cat

While the abstract Numeral inherits only Cat[Numeral,Digits], some of the
concrete NumeralNNN of Numeral inherited everything from CatNNN.

Normally the compiler outputs a warning message when a concrete syntax 
contains superflous lincats, but apparently not when they get included
through inheritance...

This does not seem to cause problems in the Haskell run-time system, but the 
C run-time system fails to load PGFs with superflous lincats.

This problems shows up when creating application grammars that inherit Numeral.
The Phrasebook is an example of such a grammar.
This commit is contained in:
hallgren
2015-08-26 11:53:16 +00:00
parent 4d39c2623b
commit 72459b5158
24 changed files with 24 additions and 24 deletions

View File

@@ -2,7 +2,7 @@
-- Modification for Urdu Shafqat Virk
concrete NumeralUrd of Numeral = CatUrd ** open ResUrd,CommonHindustani,ParamX, Prelude in {
concrete NumeralUrd of Numeral = CatUrd [Numeral,Digits] ** open ResUrd,CommonHindustani,ParamX, Prelude in {
flags coding=utf8 ;
param DForm = unit | ten ;