mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-09-02 17:36:59 -06:00
Template for starting a new resource grammar (#441)
Also addressing this https://github.com/GrammaticalFramework/gf-rgl/issues/238 with a README that adds a suggested implementation order.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
concrete NamesTMP of Names = CatTMP ** open Prelude in {
|
||||
|
||||
-- An API layer to deal with names
|
||||
-- Not part of the RGL API, but used in the AW project
|
||||
-- So depends on your goals whether this is high or low priority to implement.
|
||||
{-
|
||||
lin
|
||||
-- : GN -> NP ;
|
||||
GivenName gn =
|
||||
|
||||
-- : SN -> NP ;
|
||||
MaleSurname sn =
|
||||
|
||||
-- : SN -> NP ;
|
||||
FemaleSurname sn =
|
||||
|
||||
-- : SN -> NP ;
|
||||
PlSurname sn =
|
||||
|
||||
-- : GN -> SN -> NP ;
|
||||
FullName gn sn =
|
||||
|
||||
lin
|
||||
-- : LN -> NP ;
|
||||
UseLN ln =
|
||||
|
||||
-- : LN -> NP ;
|
||||
PlainLN ln =
|
||||
|
||||
-- : LN -> Adv ;
|
||||
InLN ln =
|
||||
|
||||
-- : AP -> LN -> LN ;
|
||||
AdjLN ap ln =
|
||||
-}
|
||||
}
|
||||
Reference in New Issue
Block a user