1
0
forked from GitHub/gf-core

rebuilt absfuns.html with some Constructions and by giving lists of deps for non-local rules

This commit is contained in:
aarne
2015-10-15 15:09:22 +00:00
parent 92b99935f3
commit a0b56e0563
2 changed files with 229 additions and 5 deletions

View File

@@ -11,10 +11,10 @@ import Data.List
-- this creates the file absfuns.html
main = do
system "grep \" : \" ../src/abstract/*.gf ../src/translator/Extensions.gf >absfuns.tmp"
system "grep \" : \" ../src/abstract/*.gf ../src/translator/Extensions.gf | grep \" -- \" >absfuns.tmp"
funs <- readFile "absfuns.tmp" >>= return . lines
deps <- readFile "../src/uddeps.labels" >>= return . lines
let depmap = M.fromList [(fun,deps) | fun:deps <- map words deps]
let depmap = M.fromListWith (\x y -> x ++ [";"] ++ y) [(fun,deps) | fun:deps <- map words deps]
let rows = sort $ filter (flip S.notMember hiddenModules . last) $ map (mkRow depmap) (map words funs)
let entries = map (sepFields . addLink) rows
putStrLnIf $ "GF RGL Functions"
@@ -27,7 +27,7 @@ main = do
hiddenModules = S.fromList
["Backward","Structural","Extra","Construction","Compatibility",
["Backward","Structural","Extra","Compatibility",
"Documentation","Lexicon","NumeralTransfer","Terminology","Transfer","MarkHTML","Markup","ERROR"] ----
mkRow depmap ws = case ws of

View File

@@ -7,7 +7,7 @@
<CENTER>
<H1>GF RGL Functions</H1>
<FONT SIZE="4"><I>generated by lib/src/doc/AbsFunFoc.hs</I></FONT><BR>
<FONT SIZE="4">20151014</FONT>
<FONT SIZE="4">20151015</FONT>
</CENTER>
<P>
@@ -772,6 +772,13 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/abstract/Idiom.gf">Idiom</A></TD>
</TR>
<TR>
<TD>InLanguage<a name="InLanguage"></a></TD>
<TD>Language -&gt; Adv</TD>
<TD><I>in English, auf englisch, englanniksi, etc</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>InOrderToVP<a name="InOrderToVP"></a></TD>
<TD>VP -&gt; Adv</TD>
<TD><I>(in order) to publish the document</I></TD>
@@ -1062,7 +1069,7 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD>PredVP<a name="PredVP"></a></TD>
<TD>NP -&gt; VP -&gt; Cl</TD>
<TD><I>John walks</I></TD>
<TD>PassVPSlash nsubjpass head</TD>
<TD>PassVPSlash nsubjpass head ; nsubj head</TD>
<TD><A HREF="../src/abstract/Sentence.gf">Sentence</A></TD>
</TR>
<TR>
@@ -1703,6 +1710,146 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
</TR>
<TR>
<TD>dayMonthAdv<a name="dayMonthAdv"></a></TD>
<TD>Monthday -&gt; Month -&gt; Adv</TD>
<TD><I>on 17 May</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>dayMonthYearAdv<a name="dayMonthYearAdv"></a></TD>
<TD>Monthday -&gt; Month -&gt; Year -&gt; Adv</TD>
<TD><I>on 17 May 2013</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>has_age_VP<a name="has_age_VP"></a></TD>
<TD>Card -&gt; VP</TD>
<TD><I>x is y years old / x a y ans (Fre)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>have_name_Cl<a name="have_name_Cl"></a></TD>
<TD>NP -&gt; NP -&gt; Cl</TD>
<TD><I>x's name is y / x s'appelle y (Fre)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>how_far_QCl<a name="how_far_QCl"></a></TD>
<TD>NP -&gt; QCl</TD>
<TD><I>how far is x / quanto dista x (Ita)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>how_old_QCl<a name="how_old_QCl"></a></TD>
<TD>NP -&gt; QCl</TD>
<TD><I>how old is x / quanti anni ha x (Ita)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>hungry_VP<a name="hungry_VP"></a></TD>
<TD>VP</TD>
<TD><I>x is hungry / x a faim (Fre)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>intMonthday<a name="intMonthday"></a></TD>
<TD>Int -&gt; Monthday</TD>
<TD><I>31th (March)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>intYear<a name="intYear"></a></TD>
<TD>Int -&gt; Year</TD>
<TD><I>(year) 1963</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>is_right_VP<a name="is_right_VP"></a></TD>
<TD>VP</TD>
<TD><I>he is right / il a raison (Fre)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>is_wrong_VP<a name="is_wrong_VP"></a></TD>
<TD>VP</TD>
<TD><I>he is wrong / han har fel (Swe)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>languageCN<a name="languageCN"></a></TD>
<TD>Language -&gt; CN</TD>
<TD><I>(my) French</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>languageNP<a name="languageNP"></a></TD>
<TD>Language -&gt; NP</TD>
<TD><I>French (is easy)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>married_Cl<a name="married_Cl"></a></TD>
<TD>NP -&gt; NP -&gt; Cl</TD>
<TD><I>x is married to y / x on naimisissa y:n kanssa (Fin)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>monthAdv<a name="monthAdv"></a></TD>
<TD>Month -&gt; Adv</TD>
<TD><I>in June</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>monthN<a name="monthN"></a></TD>
<TD>Month -&gt; N</TD>
<TD><I>(this) November</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>monthPN<a name="monthPN"></a></TD>
<TD>Month -&gt; PN</TD>
<TD><I>March (is cold)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>monthYearAdv<a name="monthYearAdv"></a></TD>
<TD>Month -&gt; Year -&gt; Adv</TD>
<TD><I>in May 2013</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>n_units_AP<a name="n_units_AP"></a></TD>
<TD>Card -&gt; CN -&gt; A -&gt; AP</TD>
<TD><I>x inches long</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>n_units_of_NP<a name="n_units_of_NP"></a></TD>
<TD>Card -&gt; CN -&gt; NP -&gt; NP</TD>
<TD><I>x ounces of this flour</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>num<a name="num"></a></TD>
<TD>Sub1000000 -&gt; Numeral</TD>
<TD><I>123456 (coercion to top category)</I></TD>
@@ -1815,12 +1962,89 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
</TR>
<TR>
<TD>thirsty_VP<a name="thirsty_VP"></a></TD>
<TD>VP</TD>
<TD><I>x is thirsty / x a soif (Fre)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>timeunitAdv<a name="timeunitAdv"></a></TD>
<TD>Card -&gt; Timeunit -&gt; Adv</TD>
<TD><I>(for) three hours</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weather_adjCl<a name="weather_adjCl"></a></TD>
<TD>AP -&gt; Cl</TD>
<TD><I>it is warm / il fait chaud (Fre)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weekdayHabitualAdv<a name="weekdayHabitualAdv"></a></TD>
<TD>Weekday -&gt; Adv</TD>
<TD><I>on Mondays</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weekdayLastAdv<a name="weekdayLastAdv"></a></TD>
<TD>Weekday -&gt; Adv</TD>
<TD><I>last Monday</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weekdayN<a name="weekdayN"></a></TD>
<TD>Weekday -&gt; N</TD>
<TD><I>(this) Monday</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weekdayNextAdv<a name="weekdayNextAdv"></a></TD>
<TD>Weekday -&gt; Adv</TD>
<TD><I>next Monday</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weekdayPN<a name="weekdayPN"></a></TD>
<TD>Weekday -&gt; PN</TD>
<TD><I>Monday (is free)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>weekdayPunctualAdv<a name="weekdayPunctualAdv"></a></TD>
<TD>Weekday -&gt; Adv</TD>
<TD><I>on Monday</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>what_name_QCl<a name="what_name_QCl"></a></TD>
<TD>NP -&gt; QCl</TD>
<TD><I>what is x's name / wie heisst x (Ger)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
<TR>
<TD>who_RP<a name="who_RP"></a></TD>
<TD>RP</TD>
<TD><I>who (relative pronoun)</I></TD>
<TD>-</TD>
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
</TR>
<TR>
<TD>yearAdv<a name="yearAdv"></a></TD>
<TD>Year -&gt; Adv</TD>
<TD><I>in 1976</I></TD>
<TD>-</TD>
<TD><A HREF="../src/abstract/Construction.gf">Construction</A></TD>
</TR>
</TABLE>
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->