2 |
7u83 |
1 |
<!-- Crown Copyright (c) 1998 -->
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<TITLE>
|
|
|
5 |
C++ Producer Guide: Error catalogue syntax
|
|
|
6 |
</TITLE>
|
|
|
7 |
</HEAD>
|
|
|
8 |
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#400080" ALINK="#FF0000">
|
|
|
9 |
|
|
|
10 |
<H1>C++ Producer Guide</H1>
|
|
|
11 |
<H3>March 1998</H3>
|
|
|
12 |
<IMG SRC="../images/no_next.gif" ALT="next section">
|
|
|
13 |
<A HREF="dump1.html"><IMG SRC="../images/prev.gif" ALT="previous section"></A>
|
|
|
14 |
<A HREF="index.html"><IMG SRC="../images/top.gif" ALT="current document"></A>
|
|
|
15 |
<A HREF="../index.html"><IMG SRC="../images/home.gif" ALT="TenDRA home page">
|
|
|
16 |
</A>
|
|
|
17 |
<IMG SRC="../images/no_index.gif" ALT="document index"><P>
|
|
|
18 |
<HR>
|
|
|
19 |
|
|
|
20 |
<H1>Annex C. Error catalogue syntax</H1>
|
|
|
21 |
<P>
|
|
|
22 |
The following gives a summary of the syntax for the
|
|
|
23 |
<A HREF="error.html">error catalogue</A> accepted by the
|
|
|
24 |
<CODE>make_err</CODE> tool. Identifiers are normal C-style identifiers,
|
|
|
25 |
strings consist of any sequence of characters enclosed inside
|
|
|
26 |
<CODE>"...."</CODE>. The escape sequences <CODE>\"</CODE>
|
|
|
27 |
and
|
|
|
28 |
<CODE>\\</CODE> are allowed in strings; other characters (including
|
|
|
29 |
newline characters) map to themselves. C-style comments are allowed.
|
|
|
30 |
<PRE>
|
|
|
31 |
<HR>
|
|
|
32 |
<I>error-database</I> :
|
|
|
33 |
<I>header types<SUB>opt</SUB> properties<SUB>opt</SUB> keys<SUB>opt</SUB> usages<SUB>opt</SUB> entries<SUB>opt</SUB></I>
|
|
|
34 |
|
|
|
35 |
<I>header</I> :
|
|
|
36 |
<I>database-name<SUB>opt</SUB> rig-name<SUB>opt</SUB> prefixes<SUB>opt</SUB></I>
|
|
|
37 |
|
|
|
38 |
<HR>
|
|
|
39 |
<I>database-name</I> :
|
|
|
40 |
DATABASE_NAME : <I>identifier</I>
|
|
|
41 |
|
|
|
42 |
<I>rig-name</I> :
|
|
|
43 |
RIG : <I>identifier</I>
|
|
|
44 |
|
|
|
45 |
<HR>
|
|
|
46 |
<I>prefixes</I> :
|
|
|
47 |
PREFIX : <I>output-prefix<SUB>opt</SUB> compiler-prefix<SUB>opt</SUB> error-prefix<SUB>opt</SUB></I>
|
|
|
48 |
|
|
|
49 |
<I>output-prefix</I> :
|
|
|
50 |
compiler_output -> <I>identifier</I>
|
|
|
51 |
|
|
|
52 |
<I>compiler-prefix</I> :
|
|
|
53 |
from_compiler -> <I>identifier</I>
|
|
|
54 |
|
|
|
55 |
<I>error-prefix</I> :
|
|
|
56 |
from_database -> <I>identifier</I>
|
|
|
57 |
|
|
|
58 |
<HR>
|
|
|
59 |
<I>types</I> :
|
|
|
60 |
TYPES : <I>name-list<SUB>opt</SUB></I>
|
|
|
61 |
|
|
|
62 |
<I>properties</I> :
|
|
|
63 |
PROPERTIES : <I>name-list<SUB>opt</SUB></I>
|
|
|
64 |
|
|
|
65 |
<I>keys</I> :
|
|
|
66 |
KEYS : <I>name-list<SUB>opt</SUB></I>
|
|
|
67 |
|
|
|
68 |
<I>usages</I> :
|
|
|
69 |
USAGE : <I>name-list<SUB>opt</SUB></I>
|
|
|
70 |
|
|
|
71 |
<I>name</I> :
|
|
|
72 |
<I>identifier</I>
|
|
|
73 |
<I>identifier</I> = <I>identifier</I>
|
|
|
74 |
<I>identifier</I> = <I>identifier</I> | <I>identifier</I>
|
|
|
75 |
|
|
|
76 |
<I>name-list</I> :
|
|
|
77 |
<I>name</I>
|
|
|
78 |
<I>name</I> , <I>name-list</I>
|
|
|
79 |
|
|
|
80 |
<HR>
|
|
|
81 |
<I>type-name</I> :
|
|
|
82 |
<I>identifier</I>
|
|
|
83 |
|
|
|
84 |
<I>property-name</I> :
|
|
|
85 |
<I>identifier</I>
|
|
|
86 |
|
|
|
87 |
<I>key-name</I> :
|
|
|
88 |
<I>identifier</I>
|
|
|
89 |
|
|
|
90 |
<I>usage-name</I> :
|
|
|
91 |
<I>identifier</I>
|
|
|
92 |
|
|
|
93 |
<HR>
|
|
|
94 |
<I>entries</I> :
|
|
|
95 |
ENTRIES : <I>entries-list<SUB>opt</SUB></I>
|
|
|
96 |
|
|
|
97 |
<I>entry-list</I> :
|
|
|
98 |
<I>entry entry-list<SUB>opt</SUB></I>
|
|
|
99 |
|
|
|
100 |
<I>entry</I> :
|
|
|
101 |
<I>identifier</I> ( <I>param-list<SUB>opt</SUB></I> ) { <I>entry-body</I> }
|
|
|
102 |
|
|
|
103 |
<I>entry-body</I> :
|
|
|
104 |
<I>alt-name<SUB>opt</SUB> entry-usage<SUB>opt</SUB> entry-properties<SUB>opt</SUB> map-list<SUB>opt</SUB></I>
|
|
|
105 |
|
|
|
106 |
<HR>
|
|
|
107 |
<I>parameter</I> :
|
|
|
108 |
<I>type-name</I> : <I>identifier</I>
|
|
|
109 |
|
|
|
110 |
<I>param-list</I> :
|
|
|
111 |
<I>parameter</I>
|
|
|
112 |
<I>parameter</I> , <I>param-list</I>
|
|
|
113 |
|
|
|
114 |
<I>param-name</I> :
|
|
|
115 |
<I>identifier</I>
|
|
|
116 |
|
|
|
117 |
<HR>
|
|
|
118 |
<I>alt-name</I> :
|
|
|
119 |
ALT_NAME : <I>identifier</I>
|
|
|
120 |
|
|
|
121 |
<I>entry-usage</I> :
|
|
|
122 |
USAGE : <I>usage-name</I>
|
|
|
123 |
USAGE : <I>usage-name</I> | <I>usage-name</I>
|
|
|
124 |
|
|
|
125 |
<I>entry-properties</I> :
|
|
|
126 |
PROPERTIES : <I>property-list<SUB>opt</SUB></I>
|
|
|
127 |
|
|
|
128 |
<I>property-list</I> :
|
|
|
129 |
<I>property-name</I>
|
|
|
130 |
<I>property-name</I> , <I>property-list</I>
|
|
|
131 |
|
|
|
132 |
<HR>
|
|
|
133 |
<I>map</I> :
|
|
|
134 |
KEY ( <I>key-name</I> ) <I>message-list<SUB>opt</SUB></I>
|
|
|
135 |
KEY ( <I>key-name</I> ) <I>message-list<SUB>opt</SUB></I> | <I>message-list<SUB>opt</SUB></I>
|
|
|
136 |
|
|
|
137 |
<I>map-list</I> :
|
|
|
138 |
<I>map map-list<SUB>opt</SUB></I>
|
|
|
139 |
|
|
|
140 |
<I>message-list</I> :
|
|
|
141 |
<I>string message-list<SUB>opt</SUB></I>
|
|
|
142 |
<I>param-name message-list<SUB>opt</SUB></I>
|
|
|
143 |
</PRE>
|
|
|
144 |
</P>
|
|
|
145 |
|
|
|
146 |
<HR>
|
|
|
147 |
<P><I>Part of the <A HREF="../index.html">TenDRA Web</A>.<BR>Crown
|
|
|
148 |
Copyright © 1998.</I></P>
|
|
|
149 |
</BODY>
|
|
|
150 |
</HTML>
|