Files
comp-syntax-gu-mlt/lab1/grammar/korean/MicroResKor.gf
2026-02-07 19:20:34 -07:00

20 lines
454 B
Plaintext

resource MicroResKor = open Prelude in {
param
VForm = Lemma | VPresent | VPast ;
oper
Noun : Type = {s : Str} ;
Verb : Type = {s : VForm => Str} ;
Verb2 : Type = Verb ;
Adjective : Type = Verb ;
lemmaToStem : (lemma : Str) -> Str
= \lemma -> case lemma of {
stem + "다" => stem ;
_ => Predef.error ("lemmaToStem was applied to a non-lemma, " ++ lemma)
} ;
-- regVerb_eo : (lemma : Str) -> Verb
}