1
0
forked from GitHub/gf-core

merged lang.labels with uddeps.labels, just leaving the latter, but adding App functions to it. This file can now be used for documenting all syntactic functions in Lang, Translate, and App

This commit is contained in:
aarne
2016-06-05 09:17:47 +00:00
parent e2d7f1d5ae
commit 77a1d57dae
4 changed files with 102 additions and 206 deletions

View File

@@ -11,7 +11,7 @@ import Data.List
-- this creates the file absfuns.html
main = do
system "grep \" : \" ../src/abstract/*.gf ../src/translator/Extensions.gf | grep \" -- \" >absfuns.tmp"
system "grep \" : \" ../src/abstract/*.gf ../src/translator/Extensions.gf ../../examples/app/App.gf | grep \" -- \" >absfuns.tmp"
funs <- readFile "absfuns.tmp" >>= return . lines
deps <- readFile "../src/uddeps.labels" >>= return . lines
let depmap = M.fromListWith (\x y -> x ++ [";"] ++ y) [(fun,deps) | fun:deps <- map words deps]
@@ -45,7 +45,12 @@ named f = f ++ "''<a name=\"" ++ f ++ "\"></a>''"
italics e = "//" ++ map (\c -> case c of '[' -> '(' ; ']'->')'; _ -> c) e ++ "//"
putStrLnIf = putStrLn
addLink fs =
let m = last fs ; abstract = case m of "Extensions" -> "translator/" ; _ -> "abstract/"
let
m = last fs
abstract = case m of
"App" -> "../../examples/app/"
"Extensions" -> "translator/"
_ -> "abstract/"
in init fs ++ ["[" ++ m ++ " ../src/" ++ abstract ++ m ++ ".gf]"]
-- for tab separated generation

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">20151019</FONT>
<FONT SIZE="4">20160605</FONT>
</CENTER>
<P>
@@ -436,6 +436,27 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/abstract/Question.gf">Question</A></TD>
</TR>
<TR>
<TD>ComplV2<a name="ComplV2"></a></TD>
<TD>V2 -&gt; NP -&gt; VP</TD>
<TD><I>sees him</I></TD>
<TD>head dobj</TD>
<TD><A HREF="../src/../../examples/app/App.gf">App</A></TD>
</TR>
<TR>
<TD>ComplV2V<a name="ComplV2V"></a></TD>
<TD>V2V -&gt; NP -&gt; VP -&gt; VP</TD>
<TD><I>forces him to leave</I></TD>
<TD>head dobj xcomp</TD>
<TD><A HREF="../src/../../examples/app/App.gf">App</A></TD>
</TR>
<TR>
<TD>ComplV3<a name="ComplV3"></a></TD>
<TD>V3 -&gt; NP -&gt; NP -&gt; VP</TD>
<TD><I>gives him an apple</I></TD>
<TD>head iobj dobj ---- could be dobj dobj</TD>
<TD><A HREF="../src/../../examples/app/App.gf">App</A></TD>
</TR>
<TR>
<TD>ComplVA<a name="ComplVA"></a></TD>
<TD>VA -&gt; AP -&gt; VP</TD>
<TD><I>they become red</I></TD>
@@ -1108,6 +1129,13 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/abstract/Verb.gf">Verb</A></TD>
</TR>
<TR>
<TD>PassV2<a name="PassV2"></a></TD>
<TD>V2 -&gt; VP</TD>
<TD><I>is seen</I></TD>
<TD>-</TD>
<TD><A HREF="../src/../../examples/app/App.gf">App</A></TD>
</TR>
<TR>
<TD>PassVPSlash<a name="PassVPSlash"></a></TD>
<TD>VPSlash -&gt; VP</TD>
<TD><I>be forced to sleep</I></TD>
@@ -1209,7 +1237,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 ; nsubj head</TD>
<TD>nsubj head</TD>
<TD><A HREF="../src/abstract/Sentence.gf">Sentence</A></TD>
</TR>
<TR>
@@ -1297,6 +1325,13 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/abstract/Question.gf">Question</A></TD>
</TR>
<TR>
<TD>QuestV2<a name="QuestV2"></a></TD>
<TD>IP -&gt; NP -&gt; V2 -&gt; QCl</TD>
<TD><I>whom does she see</I></TD>
<TD>dobj nsubj head</TD>
<TD><A HREF="../src/../../examples/app/App.gf">App</A></TD>
</TR>
<TR>
<TD>QuestVP<a name="QuestVP"></a></TD>
<TD>IP -&gt; VP -&gt; QCl</TD>
<TD><I>who walks</I></TD>
@@ -1353,6 +1388,13 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
<TD><A HREF="../src/abstract/Relative.gf">Relative</A></TD>
</TR>
<TR>
<TD>RelV2<a name="RelV2"></a></TD>
<TD>RP -&gt; NP -&gt; V2 -&gt; RCl</TD>
<TD><I>that she sees</I></TD>
<TD>mark nsubj head</TD>
<TD><A HREF="../src/../../examples/app/App.gf">App</A></TD>
</TR>
<TR>
<TD>RelVP<a name="RelVP"></a></TD>
<TD>RP -&gt; VP -&gt; RCl</TD>
<TD><I>who loves John</I></TD>