diff options
| author | peb <unknown> | 2005-02-09 19:45:54 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-02-09 19:45:54 +0000 |
| commit | 9afbd25b64607e68fe6275fb6b743159001ca984 (patch) | |
| tree | c1c7f0f1bd7f83d721f4e55318160edd1f0eee1b /src/GF/Compile/Compile.hs | |
| parent | c467ef8d0323d896778c6ed68ce0b23441f3a65a (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Compile/Compile.hs')
| -rw-r--r-- | src/GF/Compile/Compile.hs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/GF/Compile/Compile.hs b/src/GF/Compile/Compile.hs index 4c530a76c..c1d33ed8e 100644 --- a/src/GF/Compile/Compile.hs +++ b/src/GF/Compile/Compile.hs @@ -49,12 +49,10 @@ import Arch import Monad --- environment variable for grammar search path - +-- | environment variable for grammar search path gfGrammarPathVar = "GF_LIB_PATH" --- in batch mode: write code in a file - +-- | in batch mode: write code in a file batchCompile f = liftM fst $ compileModule defOpts emptyShellState f where defOpts = options [beVerbose, emitCode] @@ -66,11 +64,10 @@ batchCompileOld f = compileOld defOpts f where defOpts = options [beVerbose, emitCode] --- compile with one module as starting point +-- | compile with one module as starting point -- command-line options override options (marked by --#) in the file -- As for path: if it is read from file, the file path is prepended to each name. -- If from command line, it is used as it is. - compileModule :: Options -> ShellState -> FilePath -> IOE TimedCompileEnv ---- IOE (GFC.CanonGrammar, (SourceGrammar,[(FilePath,ModTime)])) @@ -147,8 +144,7 @@ keepResModules opts gr = else emptyMGrammar --- the environment - +-- | the environment type CompileEnv = (Int,SourceGrammar, GFC.CanonGrammar) emptyCompileEnv :: TimedCompileEnv @@ -211,8 +207,7 @@ compileOne opts env@((_,srcgr,_),_) file = do extendCompileEnvInt env (k',sm',cm) ft --- dispatch reused resource at early stage - +-- | dispatch reused resource at early stage makeSourceModule :: Options -> CompileEnv -> SourceModule -> IOE (Int,SourceModule) makeSourceModule opts env@(k,gr,can) mo@(i,mi) = case mi of |
