1
0
forked from GitHub/gf-core

a new abstract syntax in Documentation.gf which allows a more compact definition of the corresponding concrete syntax. The new strategy is so far used only in DocumentationEng and the new DocumentationBul.

This commit is contained in:
kr.angelov
2014-02-17 08:45:57 +00:00
parent 769fd9af69
commit a6747eac6b
10 changed files with 444 additions and 212 deletions

View File

@@ -5,12 +5,14 @@ abstract Documentation = Cat ** {
cat
Inflection ; -- inflection table
Document ;
fun
InflectionN : N -> Inflection ;
InflectionN2 : N2 -> Inflection ;
InflectionN3 : N3 -> Inflection ;
InflectionA : A -> Inflection ;
InflectionA2 : A2 -> Inflection ;
InflectionV : V -> Inflection ;
InflectionV2 : V2 -> Inflection ;
InflectionVV : VV -> Inflection ;
@@ -25,7 +27,7 @@ fun
InflectionAdv : Adv -> Inflection ;
InflectionPrep : Prep -> Inflection ;
ExplainInflection : String -> Inflection -> Inflection ;
fun
MkDocument : String -> Inflection -> String -> Document ;
}
}