forked from GitHub/gf-rgl
Update AbsFunDoc to remove refs to translator and app
This commit is contained in:
@@ -11,9 +11,9 @@ import Data.List
|
|||||||
-- this creates the file absfuns.html
|
-- this creates the file absfuns.html
|
||||||
|
|
||||||
main = do
|
main = do
|
||||||
system "grep \" : \" ../src/abstract/*.gf ../src/translator/Extensions.gf ../../examples/app/App.gf | grep \" -- \" >absfuns.tmp"
|
system "grep \" : \" ../src/abstract/*.gf | grep \" -- \" >absfuns.tmp"
|
||||||
funs <- readFile "absfuns.tmp" >>= return . lines
|
funs <- readFile "absfuns.tmp" >>= return . lines
|
||||||
deps <- readFile "../src/uddeps.labels" >>= return . lines
|
deps <- readFile "../src/dep.labels" >>= return . lines
|
||||||
let depmap = M.fromListWith (\x y -> x ++ [";"] ++ y) [(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 rows = sort $ filter (flip S.notMember hiddenModules . last) $ map (mkRow depmap) (map words funs)
|
||||||
let entries = map (sepFields . addLink) rows
|
let entries = map (sepFields . addLink) rows
|
||||||
@@ -47,10 +47,7 @@ putStrLnIf = putStrLn
|
|||||||
addLink fs =
|
addLink fs =
|
||||||
let
|
let
|
||||||
m = last fs
|
m = last fs
|
||||||
abstract = case m of
|
abstract = "abstract/"
|
||||||
"App" -> "../../examples/app/"
|
|
||||||
"Extensions" -> "translator/"
|
|
||||||
_ -> "abstract/"
|
|
||||||
in init fs ++ ["[" ++ m ++ " ../src/" ++ abstract ++ m ++ ".gf]"]
|
in init fs ++ ["[" ++ m ++ " ../src/" ++ abstract ++ m ++ ".gf]"]
|
||||||
|
|
||||||
-- for tab separated generation
|
-- for tab separated generation
|
||||||
@@ -59,4 +56,3 @@ addLink fs =
|
|||||||
-- italics e = e
|
-- italics e = e
|
||||||
-- putStrLnIf = return ()
|
-- putStrLnIf = return ()
|
||||||
-- addLink fs = fs
|
-- addLink fs = fs
|
||||||
|
|
||||||
|
|||||||
914
doc/absfuns.html
914
doc/absfuns.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user