doc-src/IsarRef/syntax.tex
changeset 8102 424f6e663977
parent 7981 5120a2a15d06
child 8145 cdd5386eb6fe
equal deleted inserted replaced
8101:ae555dd9585b 8102:424f6e663977
   113 \subsection{Comments}\label{sec:comments}
   113 \subsection{Comments}\label{sec:comments}
   114 
   114 
   115 Large chunks of plain \railqtoken{text} are usually given
   115 Large chunks of plain \railqtoken{text} are usually given
   116 \railtoken{verbatim}, i.e.\ enclosed in \verb|{*|~\dots~\verb|*}|.  For
   116 \railtoken{verbatim}, i.e.\ enclosed in \verb|{*|~\dots~\verb|*}|.  For
   117 convenience, any of the smaller text units conforming to \railqtoken{nameref}
   117 convenience, any of the smaller text units conforming to \railqtoken{nameref}
   118 are admitted as well.  Almost any of the Isar commands may be annotated by a
   118 are admitted as well.  Almost any of the Isar commands may be annotated by
   119 marginal \railnonterm{comment} of the form \texttt{--} \railqtoken{text}.
   119 marginal \railnonterm{comment} of the form \texttt{--} \railqtoken{text}.
   120 Note that the latter kind of comment is actually part of the language, while
   120 Note that the latter kind of comment is actually part of the language, while
   121 source level comments \verb|(*|~\dots~\verb|*)| are stripped at the lexical
   121 source level comments \verb|(*|~\dots~\verb|*)| are stripped at the lexical
   122 level.  A few commands such as $\PROOFNAME$ admit additional markup with a
   122 level.  A few commands such as $\PROOFNAME$ admit additional markup with a
   123 ``level of interest'': \texttt{\%} followed by an optional number $n$ (default
   123 ``level of interest'': \texttt{\%} followed by an optional number $n$ (default
   127 
   127 
   128 \indexoutertoken{text}\indexouternonterm{comment}\indexouternonterm{interest}
   128 \indexoutertoken{text}\indexouternonterm{comment}\indexouternonterm{interest}
   129 \begin{rail}
   129 \begin{rail}
   130   text: verbatim | nameref
   130   text: verbatim | nameref
   131   ;
   131   ;
   132   comment: '--' text
   132   comment: ('--' text +)
   133   ;
   133   ;
   134   interest: percent nat? | ppercent
   134   interest: percent nat? | ppercent
   135   ;
   135   ;
   136 \end{rail}
   136 \end{rail}
   137 
   137