diff options
author | 2008-04-21 07:40:43 +0000 | |
---|---|---|
committer | 2008-04-21 07:40:43 +0000 | |
commit | 1c38e7101eb54594b06111271369cbffac50c3b6 (patch) | |
tree | 5ff88aa5ea73d48b9d6d65754212ee042b59b435 /doc/refman/RefMan-mod.tex | |
parent | c82f88f9dd833dc33dacfe03822bc5987041e6ac (diff) |
Correction bug 1838 + doc modules.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10821 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'doc/refman/RefMan-mod.tex')
-rw-r--r-- | doc/refman/RefMan-mod.tex | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/doc/refman/RefMan-mod.tex b/doc/refman/RefMan-mod.tex index 34bc4095a..5efed7cef 100644 --- a/doc/refman/RefMan-mod.tex +++ b/doc/refman/RefMan-mod.tex @@ -8,12 +8,13 @@ together, as well as a mean of massive abstraction. \begin{figure}[t] \begin{centerframe} \begin{tabular}{rcl} -{\modtype} & ::= & {\ident} \\ - & $|$ & {\modtype} \texttt{ with Definition }{\ident} := {\term} \\ - & $|$ & {\modtype} \texttt{ with Module }{\ident} := {\qualid} \\ +{\modtype} & ::= & {\qualid.\ident} \\ + & $|$ & {\modtype} \texttt{ with Definition }{\qualid} := {\term} \\ + & $|$ & {\modtype} \texttt{ with Module }{\qualid} := {\qualid} \\ + & $|$ & {\qualid.\ident} \nelist{\qualid}{}\\ &&\\ -{\onemodbinding} & ::= & {\tt ( \nelist{\ident}{} : {\modtype} )}\\ +{\onemodbinding} & ::= & {\tt ( [Import|Export] \nelist{\ident}{} : {\modtype} )}\\ &&\\ {\modbindings} & ::= & \nelist{\onemodbinding}{}\\ @@ -61,7 +62,18 @@ This command is used to start an interactive module named {\ident}. the module. \end{Variants} +\subsubsection{Reserved commands inside an interactive module: +\comindex{Include}} +\begin{enumerate} +\item {\tt Include {\modexpr}} + Includes the content of {\modexpr} in the current interactive module. + +\item {\tt Include Type {\modtype}} + + Includes the content of {\modtype} in the current interactive module. + +\end{enumerate} \subsection{\tt End {\ident} \comindex{End}} @@ -123,7 +135,22 @@ This command is used to start an interactive module type {\ident}. Starts an interactive functor type with parameters given by {\modbindings}. \end{Variants} +\subsubsection{Reserved commands inside an interactive module type: +\comindex{Include}\comindex{Inline}} +\begin{enumerate} +\item {\tt Include {\modexpr}} + + Includes the content of {\modexpr} in the current interactive module type. + +\item {\tt Include Type {\modtype}} + + Includes the content of {\modtype} in the current interactive module type. + +\item {\tt {\declarationkeyword} Inline {\assums} } + + This declaration will be automatically unfolded at functor application. +\end{enumerate} \subsection{\tt End {\ident} \comindex{End}} |