Debian Codegraph @

progs/arm_frmd.ads

raw
1 private package ARM_Format.Data is
2
3 --
4 -- Ada reference manual formatter (ARM_Form).
5 --
6 -- This package contains various data used by the input file parser.
7 --
8 -- ---------------------------------------
9 -- Copyright 2011, 2012 AXE Consultants. All rights reserved.
10 -- P.O. Box 1512, Madison WI 53701
11 -- E-Mail: [email protected]
12 --
13 -- ARM_Form is free software: you can redistribute it and/or modify
14 -- it under the terms of the GNU General Public License version 3
15 -- as published by the Free Software Foundation.
16 --
17 -- AXE CONSULTANTS MAKES THIS TOOL AND SOURCE CODE AVAILABLE ON AN "AS IS"
18 -- BASIS AND MAKES NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE ACCURACY,
19 -- CAPABILITY, EFFICIENCY, MERCHANTABILITY, OR FUNCTIONING OF THIS TOOL.
20 -- IN NO EVENT WILL AXE CONSULTANTS BE LIABLE FOR ANY GENERAL,
21 -- CONSEQUENTIAL, INDIRECT, INCIDENTAL, EXEMPLARY, OR SPECIAL DAMAGES,
22 -- EVEN IF AXE CONSULTANTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
23 -- DAMAGES.
24 --
25 -- A copy of the GNU General Public License is available in the file
26 -- gpl-3-0.txt in the standard distribution of the ARM_Form tool.
27 -- Otherwise, see <http://www.gnu.org/licenses/>.
28 --
29 -- If the GPLv3 license is not satisfactory for your needs, a commercial
30 -- use license is available for this tool. Contact Randy at AXE Consultants
31 -- for more information.
32 --
33 -- ---------------------------------------
34 --
35 -- Edit History:
36 --
37 -- 8/ 8/11 - RLB - Split from base package, mainly to reduce the
38 -- size of that package.
39 -- - RLB - Added aspect index commands.
40 -- 10/18/11 - RLB - Changed to GPLv3 license.
41 -- 10/19/11 - RLB - Added AspectDefn command.
42 -- 10/20/11 - RLB - Added DeletedPragmaSyn command.
43 -- 10/26/11 - RLB - Added versioned break commands.
44 -- 3/27/12 - RLB - Added more versioned break commands.
45 -- 10/18/12 - RLB - Added more specific hanging_indent commands.
46 -- 12/17/12 - RLB - Added Ada 2012 AARM headings.
47
48
49 type LString is record
50 Length : Natural;
51 Str : String(1..40);
52 end record;
53 Paragraph_Kind_Name : constant array (Paragraph_Type) of LString :=
54 (Plain => (Length => 0, Str => (others => ' ')), -- Not used.
55 Introduction => (Length => 17, Str => "Introductory Text "), -- IntroName
56 Language_Design => (Length => 25, Str => "Language Design Principle "), -- MetaRulesName
57 Syntax => (Length => 11, Str => "Syntax Rule "), -- SyntaxName
58 Resolution => (Length => 20, Str => "Name Resolution Rule "), -- ResolutionName
59 Legality => (Length => 13, Str => "Legality Rule "), -- LegalityName
60 Static_Semantics=> (Length => 20, Str => "Static Semantic Item "), -- StaticSemName
61 Link_Time => (Length => 21, Str => "Post-Compilation Rule "), -- LinkTimeName
62 Run_Time => (Length => 21, Str => "Dynamic Semantic Item "), -- RunTimeName
63 Bounded_Errors => (Length => 24, Str => "Bounded (Run-Time) Error "), -- BoundedName
64 Erroneous => (Length => 19, Str => "Erroneous Execution "), -- ErronName
65 Requirements => (Length => 26, Str => "Implementation Requirement "), -- ImplReqName
66 Documentation => (Length => 25, Str => "Documentation Requirement "), -- DocReqName
67 Metrics => (Length => 6, Str => "Metric "), -- MetricsName
68 Permissions => (Length => 25, Str => "Implementation Permission "), -- ImplPermName
69 Advice => (Length => 21, Str => "Implementation Advice "), -- ImplAdviceName
70 Notes => (Length => 4, Str => "Note "), -- NotesName
71 Single_Note => (Length => 4, Str => "Note "), -- SimpleNoteName
72 Examples => (Length => 7, Str => "Example "), -- ExamplesName
73 Ada83_Inconsistencies
74 => (Length => 25, Str => "Inconsistency with Ada 83 "), -- Inconsistent83Name
75 Ada83_Incompatibilities
76 => (Length => 27, Str => "Incompatibility with Ada 83 "), -- Incompatible83Name
77 Ada83_Extensions=> (Length => 19, Str => "Extension to Ada 83 "), -- Extend83Name
78 Ada83_Wording => (Length => 26, Str => "Wording Change from Ada 83 "), -- DiffWord83Name
79 Ada95_Inconsistencies
80 => (Length => 25, Str => "Inconsistency with Ada 95 "), -- Inconsistent95Name
81 Ada95_Incompatibilities
82 => (Length => 27, Str => "Incompatibility with Ada 95 "), -- Incompatible95Name
83 Ada95_Extensions=> (Length => 19, Str => "Extension to Ada 95 "), -- Extend95Name
84 Ada95_Wording => (Length => 26, Str => "Wording Change from Ada 95 "), -- DiffWord95Name
85 Ada2005_Inconsistencies
86 => (Length => 27, Str => "Inconsistency with Ada 2005 "), -- Inconsistent2005Name
87 Ada2005_Incompatibilities
88 => (Length => 29, Str => "Incompatibility with Ada 2005 "), -- Incompatible2005Name
89 Ada2005_Extensions
90 => (Length => 21, Str => "Extension to Ada 2005 "), -- Extend2005Name
91 Ada2005_Wording => (Length => 28, Str => "Wording Change from Ada 2005 "), -- DiffWord2005Name
92 Ada2012_Inconsistencies
93 => (Length => 27, Str => "Inconsistency with Ada 2012 "), -- Inconsistent2012Name
94 Ada2012_Incompatibilities
95 => (Length => 29, Str => "Incompatibility with Ada 2012 "), -- Incompatible2012Name
96 Ada2012_Extensions
97 => (Length => 21, Str => "Extension to Ada 2012 "), -- Extend2012Name
98 Ada2012_Wording => (Length => 28, Str => "Wording Change from Ada 2012 "), -- DiffWord2012Name
99 Element_Ref => (Length => 0, Str => (others => ' ')), -- Not used.
100 Child_Ref => (Length => 0, Str => (others => ' ')), -- Not used.
101 Usage_Note => (Length => 0, Str => (others => ' ')), -- Not used.
102 Reason => (Length => 0, Str => (others => ' ')), -- Not used.
103 Ramification => (Length => 0, Str => (others => ' ')), -- Not used.
104 Proof => (Length => 0, Str => (others => ' ')), -- Not used.
105 Imp_Note => (Length => 0, Str => (others => ' ')), -- Not used.
106 Corr_Change => (Length => 0, Str => (others => ' ')), -- Not used.
107 Discussion => (Length => 0, Str => (others => ' ')), -- Not used.
108 Honest => (Length => 0, Str => (others => ' ')), -- Not used.
109 Glossary_Marker => (Length => 0, Str => (others => ' ')), -- Not used.
110 Bare_Annotation => (Length => 0, Str => (others => ' ')), -- Not used.
111 Wide_Above => (Length => 0, Str => (others => ' ')), -- Not used.
112 Example_Text => (Length => 0, Str => (others => ' ')), -- Not used.
113 Child_Example_Text => (Length => 0, Str => (others => ' ')), -- Not used.
114 Indented_Example_Text=>(Length => 0, Str => (others => ' ')), -- Not used.
115 Code_Indented => (Length => 0, Str => (others => ' ')), -- Not used.
116 Indent => (Length => 0, Str => (others => ' ')), -- Not used.
117 Bulleted => (Length => 0, Str => (others => ' ')), -- Not used.
118 Nested_Bulleted => (Length => 0, Str => (others => ' ')), -- Not used.
119 Nested_X2_Bulleted=>(Length=> 0, Str => (others => ' ')), -- Not used.
120 Display => (Length => 0, Str => (others => ' ')), -- Not used.
121 Syntax_Display => (Length => 0, Str => (others => ' ')), -- Not used.
122 Syntax_Indented => (Length => 0, Str => (others => ' ')), -- Not used.
123 Syntax_Production=>(Length => 0, Str => (others => ' ')), -- Not used.
124 Enumerated => (Length => 0, Str => (others => ' ')), -- Not used.
125 Nested_Enumerated=>(Length => 0, Str => (others => ' ')), -- Not used.
126 Hanging_Indented_1=>(Length => 0, Str => (others => ' ')), -- Not used.
127 Hanging_Indented_2=>(Length => 0, Str => (others => ' ')), -- Not used.
128 Hanging_Indented_3=>(Length => 0, Str => (others => ' ')), -- Not used.
129 Hanging_Indented_4=>(Length => 0, Str => (others => ' ')), -- Not used.
130 Small => (Length => 0, Str => (others => ' ')), -- Not used.
131 Title => (Length => 0, Str => (others => ' ')), -- Not used.
132 In_Table => (Length => 0, Str => (others => ' '))); -- Not used.
133
134 Paragraph_Kind_Title : constant array (Paragraph_Type) of LString :=
135 (Plain => (Length => 0, Str => (others => ' ')),
136 Introduction => (Length => 0, Str => (others => ' ')), -- IntroTitle (deleted).
137 Language_Design => (Length => 26, Str => "Language Design Principles "), -- MetaRulesTitle
138 Syntax => (Length => 6, Str => "Syntax "), -- SyntaxTitle
139 Resolution => (Length => 21, Str => "Name Resolution Rules "), -- ResolutionTitle
140 Legality => (Length => 14, Str => "Legality Rules "), -- LegalityTitle
141 Static_Semantics=> (Length => 16, Str => "Static Semantics "), -- StaticSemTitle
142 Link_Time => (Length => 22, Str => "Post-Compilation Rules "), -- LinkTimeTitle
143 Run_Time => (Length => 17, Str => "Dynamic Semantics "), -- RunTimeTitle
144 Bounded_Errors => (Length => 25, Str => "Bounded (Run-Time) Errors "), -- BoundedTitle
145 Erroneous => (Length => 19, Str => "Erroneous Execution "), -- ErronTitle
146 Requirements => (Length => 27, Str => "Implementation Requirements "), -- ImplReqTitle
147 Documentation => (Length => 26, Str => "Documentation Requirements "), -- DocReqTitle
148 Metrics => (Length => 7, Str => "Metrics "), -- MetricsTitle
149 Permissions => (Length => 26, Str => "Implementation Permissions "), -- ImplPermTitle
150 Advice => (Length => 21, Str => "Implementation Advice "), -- ImplAdviceTitle
151 Notes => (Length => 5, Str => "NOTES "), -- NotesTitle
152 Single_Note => (Length => 5, Str => "NOTES "), -- SimpleNoteTitle
153 Examples => (Length => 8, Str => "Examples "), -- ExamplesTitle
154 Ada83_Inconsistencies
155 => (Length => 27, Str => "Inconsistencies With Ada 83 "), -- Inconsistent83Title
156 Ada83_Incompatibilities
157 => (Length => 29, Str => "Incompatibilities With Ada 83 "), -- Incompatible83Title
158 Ada83_Extensions=> (Length => 20, Str => "Extensions to Ada 83 "), -- Extend83Title
159 Ada83_Wording => (Length => 27, Str => "Wording Changes from Ada 83 "), -- DiffWord83Title
160 Ada95_Inconsistencies
161 => (Length => 27, Str => "Inconsistencies With Ada 95 "), -- Inconsistent95Title
162 Ada95_Incompatibilities
163 => (Length => 29, Str => "Incompatibilities With Ada 95 "), -- Incompatible95Title
164 Ada95_Extensions=> (Length => 20, Str => "Extensions to Ada 95 "), -- Extend95Title
165 Ada95_Wording => (Length => 27, Str => "Wording Changes from Ada 95 "), -- DiffWord95Title
166 Ada2005_Inconsistencies
167 => (Length => 29, Str => "Inconsistencies With Ada 2005 "), -- Inconsistent2005Title
168 Ada2005_Incompatibilities
169 => (Length => 31, Str => "Incompatibilities With Ada 2005 "), -- Incompatible2005Title
170 Ada2005_Extensions
171 => (Length => 22, Str => "Extensions to Ada 2005 "), -- Extend2005Title
172 Ada2005_Wording => (Length => 29, Str => "Wording Changes from Ada 2005 "), -- DiffWord2005Title
173 Ada2012_Inconsistencies
174 => (Length => 29, Str => "Inconsistencies With Ada 2012 "), -- Inconsistent2012Title
175 Ada2012_Incompatibilities
176 => (Length => 31, Str => "Incompatibilities With Ada 2012 "), -- Incompatible2012Title
177 Ada2012_Extensions
178 => (Length => 22, Str => "Extensions to Ada 2012 "), -- Extend2012Title
179 Ada2012_Wording => (Length => 29, Str => "Wording Changes from Ada 2012 "), -- DiffWord2012Title
180 Element_Ref => (Length => 19, Str => "Element Reference: "), -- Paragraph start.
181 Child_Ref => (Length => 28, Str => "Child Elements returned by: "), -- Paragraph start.
182 Usage_Note => (Length => 12, Str => "Usage Note: "), -- Paragraph start.
183 Reason => (Length => 8, Str => "Reason: "), -- Paragraph start.
184 Ramification => (Length => 14, Str => "Ramification: "), -- Paragraph start.
185 Proof => (Length => 7, Str => "Proof: "), -- Paragraph start.
186 Imp_Note => (Length => 21, Str => "Implementation Note: "), -- Paragraph start.
187 Corr_Change => (Length => 8, Str => "Change: "), -- Paragraph start.
188 Discussion => (Length => 12, Str => "Discussion: "), -- Paragraph start.
189 Honest => (Length => 14, Str => "To be honest: "), -- Paragraph start.
190 Glossary_Marker => (Length => 16, Str => "Glossary entry: "), -- Paragraph start.
191 Bare_Annotation => (Length => 0, Str => (others => ' ')), -- Not used.
192 Wide_Above => (Length => 0, Str => (others => ' ')), -- Not used.
193 Example_Text => (Length => 0, Str => (others => ' ')), -- Not used.
194 Child_Example_Text => (Length => 0, Str => (others => ' ')), -- Not used.
195 Indented_Example_Text=>(Length => 0, Str => (others => ' ')), -- Not used.
196 Code_Indented => (Length => 0, Str => (others => ' ')), -- Not used.
197 Indent => (Length => 0, Str => (others => ' ')), -- Not used.
198 Bulleted => (Length => 0, Str => (others => ' ')), -- Not used.
199 Nested_Bulleted => (Length => 0, Str => (others => ' ')), -- Not used.
200 Nested_X2_Bulleted=>(Length=> 0, Str => (others => ' ')), -- Not used.
201 Display => (Length => 0, Str => (others => ' ')), -- Not used.
202 Syntax_Display => (Length => 0, Str => (others => ' ')), -- Not used.
203 Syntax_Indented => (Length => 0, Str => (others => ' ')), -- Not used.
204 Syntax_Production=>(Length => 0, Str => (others => ' ')), -- Not used.
205 Enumerated => (Length => 0, Str => (others => ' ')), -- Not used.
206 Nested_Enumerated=>(Length => 0, Str => (others => ' ')), -- Not used.
207 Hanging_Indented_1=>(Length => 0, Str => (others => ' ')), -- Not used.
208 Hanging_Indented_2=>(Length => 0, Str => (others => ' ')), -- Not used.
209 Hanging_Indented_3=>(Length => 0, Str => (others => ' ')), -- Not used.
210 Hanging_Indented_4=>(Length => 0, Str => (others => ' ')), -- Not used.
211 Small => (Length => 0, Str => (others => ' ')), -- Not used.
212 Title => (Length => 0, Str => (others => ' ')), -- Not used.
213 In_Table => (Length => 0, Str => (others => ' '))); -- Not used.
214
215
216 type Command_Type is (
217 -- Paragraphs:
218 Text_Begin, Text_End, Redundant, Comment, Part, New_Page, Soft_Page,
219 New_Column, RM_New_Page, New_Page_for_Version, New_Column_for_Version,
220 RM_New_Page_for_Version, Not_Iso_RM_New_Page_for_Version,
221 Iso_Only_RM_New_Page_for_Version,
222 -- Basic text formatting:
223 Bold, Italic, Roman, Swiss, Fixed, Roman_Italic, Shrink, Grow,
224 Black, Red, Green, Blue,
225 Keyword, Non_Terminal, Non_Terminal_Format,
226 Example_Text, Example_Comment,
227 No_Prefix, No_Para_Num, Keep_with_Next,
228 Leading, Trailing, Up, Down, Thin_Line, Thick_Line, Tab_Clear, Tab_Set,
229 -- Tables:
230 Table, Table_Param_Caption, Table_Param_Header, Table_Param_Body, Table_Last,
231 -- Pictures:
232 Picture_Alone, Picture_Inline,
233 -- Indexing:
234 Index_List,
235 Defn, RootDefn, PDefn, Defn2, RootDefn2, PDefn2, Index_See,
236 Index_See_Also, See_Other, See_Also,
237 Index_Root_Unit, Index_Child_Unit, Index_Subprogram_Child_Unit,
238 Index_Type, Index_Subtype, Index_Subprogram,
239 Index_Exception, Index_Object, Index_Package,
240 Index_Other, Index_Check, Index_Attr, Index_Pragma, Index_Aspect,
241 -- Clause labels:
242 Labeled_Section, Labeled_Section_No_Break, Labeled_Clause,
243 Labeled_Subclause, Labeled_Subsubclause,
244 Labeled_Revised_Section, Labeled_Revised_Clause, Labeled_Revised_Subclause, Labeled_Revised_Subsubclause,
245 Labeled_Added_Section, Labeled_Added_Clause, Labeled_Added_Subclause, Labeled_Added_Subsubclause,
246 Labeled_Deleted_Clause, Labeled_Deleted_Subclause, Labeled_Deleted_Subsubclause,
247 Preface_Section,
248 Labeled_Annex, Labeled_Revised_Annex, Labeled_Added_Annex,
249 Labeled_Informative_Annex, Labeled_Revised_Informative_Annex,
250 Labeled_Added_Informative_Annex,
251 Labeled_Normative_Annex, Labeled_Revised_Normative_Annex,
252 Labeled_Added_Normative_Annex,
253 Unnumbered_Section, Subheading, Heading, Center, Right,
254 Added_Subheading,
255 -- Clause references:
256 Ref_Section, Ref_Section_Number, Ref_Section_by_Number,
257 -- Links:
258 Local_Target, Local_Link, URL_Link, AI_Link,
259 -- Information:
260 Syntax_Rule, Syntax_Rule_RHS, Syntax_Term, Syntax_Term_Undefined,
261 Syntax_Prefix, Syntax_Summary, Syntax_Xref,
262 Added_Syntax_Rule, Deleted_Syntax_Rule,
263 Implementation_Defined, Implementation_Defined_List,
264 To_Glossary, To_Glossary_Also,
265 Change_To_Glossary, Change_To_Glossary_Also,
266 Glossary_Text_Param, -- This is a parameter of the last four.
267 Glossary_List,
268 Prefix_Type, Reset_Prefix_Type, Attribute, Attribute_Leading, Attribute_Text_Param, -- The last is a parameter of Attribute.
269 Attribute_List,
270 Pragma_Syntax, Pragma_List, Added_Pragma_Syntax, Deleted_Pragma_Syntax,
271 Package_List, Type_List, Subprogram_List, Exception_List, Object_List,
272 -- Corrigendum changes:
273 Change, Change_Param_Old, Change_Param_New, -- The latter are the parameters of "Change".
274 Change_Reference, Change_Note,
275 Change_Added, Change_Added_Param, Change_Deleted, Change_Deleted_Param,
276 Change_Implementation_Defined,
277 Change_Impdef_Text_Param, -- This is a parameter of the previous.
278 Change_Implementation_Advice,
279 Change_Impladv_Text_Param, -- This is a parameter of the previous.
280 Added_Implementation_Advice_List,
281 Change_Documentation_Requirement,
282 Change_DocReq_Text_Param, -- This is a parameter of the previous.
283 Added_Documentation_Requirements_List,
284 Change_Aspect_Description,
285 Change_AspectDesc_Text_Param, -- This is a parameter of the previous.
286 Added_Aspect_Description_List,
287 Change_Attribute, Change_Prefix_Type,
288 Change_Prefix_Text_Param, -- This is a parameter of the previous.
289 -- Text macros:
290 Intro_Name, Syntax_Name, Resolution_Name, Legality_Name, Static_Name,
291 Link_Name, Run_Name, Bounded_Name, Erroneous_Name, Req_Name,
292 Doc_Name, Metrics_Name, Permission_Name, Advice_Name, Notes_Name,
293 Single_Note_Name, Examples_Name, Meta_Name, Inconsistent83_Name,
294 Incompatible83_Name, Extend83_Name, Wording83_Name,
295 Inconsistent95_Name, Incompatible95_Name, Extend95_Name, Wording95_Name,
296 Inconsistent2005_Name, Incompatible2005_Name, Extend2005_Name, Wording2005_Name,
297 Inconsistent2012_Name, Incompatible2012_Name, Extend2012_Name, Wording2012_Name,
298 Syntax_Title, Resolution_Title, Legality_Title, Static_Title,
299 Link_Title, Run_Title, Bounded_Title, Erroneous_Title, Req_Title,
300 Doc_Title, Metrics_Title, Permission_Title, Advice_Title, Notes_Title,
301 Single_Note_Title,
302 Examples_Title, Meta_Title, Inconsistent83_Title, Incompatible83_Title,
303 Extend83_Title, Wording83_Title, Inconsistent95_Title, Incompatible95_Title,
304 Extend95_Title, Wording95_Title, Inconsistent2005_Title, Incompatible2005_Title,
305 Extend2005_Title, Wording2005_Title, Inconsistent2012_Title, Incompatible2012_Title,
306 Extend2012_Title, Wording2012_Title,
307 -- Character macros:
308 EM_Dash, EN_Dash, LE, LT, GE, GT, NE, PI, Times, PorM, Single_Quote,
309 Latin_1, Unicode, Ceiling, Floor, Absolute, Log, Thin_Space,
310 Left_Quote, Right_Quote, Left_Double_Quote, Right_Double_Quote,
311 Left_Quote_Pair, Right_Quote_Pair, Small_Dotless_I, Capital_Dotted_I,
312 Unknown);
313
314
315 function Command (Name : in ARM_Input.Command_Name_Type)
316 return Command_Type;
317 -- Return the command value for a particular command name:
318
319 end ARM_Format.Data;