7046
|
1 |
|
|
2 |
\chapter{Isar document syntax}
|
|
3 |
|
|
4 |
\section{Inner versus outer syntax}
|
|
5 |
|
|
6 |
\section{Lexical matters}
|
|
7 |
|
|
8 |
\section{Common syntax entities}
|
|
9 |
|
|
10 |
\subsection{Atoms}
|
|
11 |
|
|
12 |
\begin{rail}
|
|
13 |
name : ident | symident | string
|
|
14 |
;
|
|
15 |
|
|
16 |
nameref : name | longident
|
|
17 |
;
|
|
18 |
|
|
19 |
text : nameref | verbatim
|
|
20 |
;
|
|
21 |
\end{rail}
|
|
22 |
|
|
23 |
\subsection{Comments}
|
|
24 |
|
|
25 |
\begin{rail}
|
|
26 |
comment : (() | '--' text)
|
|
27 |
;
|
|
28 |
interest : (() | '\%')
|
|
29 |
;
|
|
30 |
\end{rail}
|
|
31 |
|
|
32 |
|
|
33 |
\subsection{Sorts and arities}
|
|
34 |
|
|
35 |
\begin{rail}
|
|
36 |
sort : nameref | lbrace (nameref * ',') rbrace
|
|
37 |
;
|
|
38 |
arity : ( () | '(' (sort + ',') ')' ) sort
|
|
39 |
;
|
|
40 |
simple\-arity : ( () | '(' (sort + ',') ')' ) nameref
|
|
41 |
;
|
|
42 |
\end{rail}
|
|
43 |
|
|
44 |
|
|
45 |
\subsection{Terms and Types}
|
|
46 |
|
|
47 |
\begin{rail}
|
|
48 |
|
|
49 |
\end{rail}
|
|
50 |
|
|
51 |
\subsection{Mixfix annotations}
|
|
52 |
|
|
53 |
|
|
54 |
\subsection{}
|
|
55 |
|
|
56 |
\subsection{}
|
|
57 |
|
|
58 |
\subsection{}
|
|
59 |
|
|
60 |
|
|
61 |
%%% Local Variables:
|
|
62 |
%%% mode: latex
|
|
63 |
%%% TeX-master: "isar-ref"
|
|
64 |
%%% End:
|