]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/m2/gm2-libs-iso/ConvTypes.def
Merge modula-2 front end onto gcc.
[thirdparty/gcc.git] / gcc / m2 / gm2-libs-iso / ConvTypes.def
1 (* Library module defined by the International Standard
2 Information technology - programming languages
3 BS ISO/IEC 10514-1:1996E Part 1: Modula-2, Base Language.
4
5 Copyright ISO/IEC (International Organization for Standardization
6 and International Electrotechnical Commission) 1996-2021.
7
8 It may be freely copied for the purpose of implementation (see page
9 707 of the Information technology - Programming languages Part 1:
10 Modula-2, Base Language. BS ISO/IEC 10514-1:1996). *)
11
12 DEFINITION MODULE ConvTypes;
13
14 (* Common types used in the string conversion modules *)
15
16 TYPE
17 ConvResults = (* Values of this type are used to express the format of a string *)
18 (
19 strAllRight, (* the string format is correct for the corresponding conversion *)
20 strOutOfRange, (* the string is well-formed but the value cannot be represented *)
21 strWrongFormat, (* the string is in the wrong format for the conversion *)
22 strEmpty (* the given string is empty *)
23 );
24
25 ScanClass = (* Values of this type are used to classify input to finite state scanners *)
26 (
27 padding, (* a leading or padding character at this point in the scan - ignore it *)
28 valid, (* a valid character at this point in the scan - accept it *)
29 invalid, (* an invalid character at this point in the scan - reject it *)
30 terminator (* a terminating character at this point in the scan (not part of token) *)
31 );
32
33 ScanState = (* The type of lexical scanning control procedures *)
34 PROCEDURE (CHAR, VAR ScanClass, VAR ScanState);
35
36 END ConvTypes.
37