This commit is contained in:
2026-02-07 18:57:59 -07:00
parent 8f07d8c73d
commit 9f59998ef2
3 changed files with 12 additions and 18 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
*.gfo *.gfo
.gf-lsp
.direnv .direnv

View File

@@ -10,7 +10,7 @@ concrete MicroLangKor of MicroLang = open MicroResKor, Prelude in {
S = {s : Str} ; S = {s : Str} ;
VP = {verb : Verb ; compl : Str} ; ---s special case of Mini VP = {verb : Verb ; compl : Str} ; ---s special case of Mini
Comp = {s : Str} ; Comp = Noun ;
AP = Adjective ; AP = Adjective ;
CN = Noun ; CN = Noun ;
NP = {s : Str} ; NP = {s : Str} ;
@@ -26,6 +26,7 @@ concrete MicroLangKor of MicroLang = open MicroResKor, Prelude in {
lin lin
UttS s = s ; UttS s = s ;
UttNP np = {s = np.s} ; UttNP np = {s = np.s} ;
-- PredVPS np vp = {s = np.s ++ vp.compl ++ vp.verb.s} ;
UseV v = {verb = v ; compl = []} ; UseV v = {verb = v ; compl = []} ;
ComplV2 v2 np = {verb = v2 ; compl = np.s}; ComplV2 v2 np = {verb = v2 ; compl = np.s};
UseN n = n ; UseN n = n ;
@@ -140,12 +141,8 @@ oper
mkN : Str -> Noun mkN : Str -> Noun
= \s -> lin N {s = s} ; = \s -> lin N {s = s} ;
mkA : Str -> A -- mkA : Str -> A
= \stem -> lin A { -- = \stem -> lin A (mkV stem) ;
stem = stem ;
reg = Regular ;
t = Descriptive
} ;
mkAdv : Str -> Adv mkAdv : Str -> Adv
= \s -> lin Adv {s = s} ; = \s -> lin Adv {s = s} ;
@@ -155,9 +152,10 @@ oper
mkV = overload { mkV = overload {
mkV : Str -> V = \stem -> lin V { mkV : Str -> V = \stem -> lin V {
stem = stem ; s = table {
reg = Regular ; VPresent => stem + "어요" ;
t = Action VPast => stem + "었어요"
}; }
}
} ; } ;
} }

View File

@@ -1,15 +1,10 @@
resource MicroResKor = open Prelude in { resource MicroResKor = open Prelude in {
param param
Regularity = Regular | PieupIrregular ; VForm = VPresent | VPast ;
VerbType = Action | Descriptive ;
oper oper
Noun : Type = {s : Str} ; Noun : Type = {s : Str} ;
Verb : Type = { Verb : Type = {s : VForm => Str} ;
reg : Regularity ;
stem : Str ;
t : VerbType
} ;
Verb2 : Type = Verb ; Verb2 : Type = Verb ;
Adjective : Type = Verb ; Adjective : Type = Verb ;
} }