Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SMGloM
GF
Commits
4db3a65c
Commit
4db3a65c
authored
Jun 11, 2018
by
jfschaefer
Browse files
added functor for MCats
parent
e6c1019f
Changes
2
Hide whitespace changes
Inline
Side-by-side
gf/MCatsEng.gf
View file @
4db3a65c
concrete MCatsEng of MCats = open SyntaxEng, ParamX in {
param
boolean = true | false;
multiplicity = one | many;
concrete MCatsEng of MCats = MCatsI with (Syntax=SyntaxEng) ** {
lincat
-- natural language
PosNegPol = Pol;
-- DefMObj = NP;
MObj = {
core : CN; -- core of the declaration (e.g. "continuous function")
suffix : Number => Str; -- suffix (usually starting with a preposition, e.g. "on the real numbers") (number required for relative clauses)
prep1 : Str; -- preposition 1 (e.g. StrSome("from"))
prep2 : Str; -- preposition 2 (e.g. StrSom("to"))
hasp1 : boolean;
hasp2 : boolean;
};
MObjProp = AP;
Statement = Cl;
-- statement as sentence or relative sentence ("such that ...")
StatementFin = { s : S ; rs : RS };
Definition = S;
Declaration = S;
Utterance = Utt;
-- formulae
MathCN = CN;
Identifier = { s : Str; m : multiplicity };
}
gf/MCatsI.gf
0 → 100644
View file @
4db3a65c
incomplete concrete MCatsI of MCats = open Syntax, ParamX in {
param
boolean = true | false;
multiplicity = one | many;
lincat
-- natural language
PosNegPol = Pol;
-- DefMObj = NP;
MObj = {
core : CN; -- core of the declaration (e.g. "continuous function")
suffix : Number => Str; -- suffix (usually starting with a preposition, e.g. "on the real numbers") (number required for relative clauses)
prep1 : Str; -- preposition 1 (e.g. StrSome("from"))
prep2 : Str; -- preposition 2 (e.g. StrSom("to"))
hasp1 : boolean;
hasp2 : boolean;
};
MObjProp = AP;
Statement = Cl;
-- statement as sentence or relative sentence ("such that ...")
StatementFin = { s : S ; rs : RS };
Definition = S;
Declaration = S;
Utterance = Utt;
-- formulae
MathCN = CN;
Identifier = { s : Str; m : multiplicity };
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment