mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
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:
@@ -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
|
||||
|
||||
@@ -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 -> NP -> 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 -> NP -> VP -> 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 -> NP -> NP -> 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 -> AP -> 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 -> 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 -> 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 -> VP -> 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 -> NP -> V2 -> 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 -> VP -> 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 -> NP -> V2 -> 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 -> VP -> RCl</TD>
|
||||
<TD><I>who loves John</I></TD>
|
||||
|
||||
Reference in New Issue
Block a user