mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-25 11:06:28 -06:00
(Hun) Merge the param Number into NumType: NoNum {Sg|Pl} | IsNum
This commit is contained in:
@@ -179,13 +179,16 @@ param
|
||||
|
||||
CardOrd = NOrd | NCard ; -- Not used yet
|
||||
|
||||
NumType = NoNum | IsNum ;
|
||||
NumType = NoNum Number | IsNum ;
|
||||
|
||||
oper
|
||||
isNum : {numtype : NumType} -> Bool = \nt -> case nt.numtype of {
|
||||
NoNum => False ;
|
||||
_ => True
|
||||
isNum : {n : NumType} -> Bool = \n -> case n.n of {
|
||||
IsNum => True ;
|
||||
_ => False
|
||||
} ;
|
||||
|
||||
num2number : NumType -> Number = \n ->
|
||||
case n of {NoNum x => x ; IsNum => Sg} ;
|
||||
--------------------------------------------------------------------------------
|
||||
-- Adjectives
|
||||
|
||||
|
||||
Reference in New Issue
Block a user