-
Notifications
You must be signed in to change notification settings - Fork 0
/
trans.ads
125 lines (123 loc) · 2.61 KB
/
trans.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
-- A lexical scanner generated by aflex
with text_io; use text_io;
with trans_dfa; use trans_dfa;
with trans_io; use trans_io;
--# line 1 "trans.l"
-- Automatically generated AFLEX input
-- from AdaGOOP (by Martin C. Carlisle)
-- Do not modify.
--# line 16 "trans.l"
package trans is
Invalid_Character : exception;
type Token is (
End_Of_Input,
Error,
CHAR_LITERAL_token,
STRING_LITERAL_token,
BASED_LITERAL_token,
DECIMAL_LITERAL_token,
IDENTIFIER_token,
TICK_token,
BANG_token,
PIPE_token,
GT_token,
EQ_token,
LT_token,
SEMICOLON_token,
COLON_token,
SLASH_token,
DOT_token,
MINUS_token,
COMMA_token,
PLUS_token,
STAR_token,
R_PAREN_token,
L_PAREN_token,
CONCAT_token,
BOX_token,
RIGHT_LABEL_BRACKET_token,
LEFT_LABEL_BRACKET_token,
LESS_THAN_OR_EQUAL_token,
GREATER_THAN_OR_EQUAL_token,
INEQUALITY_token,
ASSIGNMENT_token,
EXPONENT_token,
DOUBLE_DOT_token,
ARROW_token,
XOR_token,
WITH_token,
WHILE_token,
WHEN_token,
USE_token,
UNTIL_token,
TYPE_token,
THEN_token,
TERMINATE_token,
TASK_token,
TAGGED_token,
SUBTYPE_token,
SEPARATE_token,
SELECT_token,
REVERSE_token,
RETURN_token,
REQUEUE_token,
RENAMES_token,
REM_token,
RECORD_token,
RANGE_token,
RAISE_token,
PROTECTED_token,
PROCEDURE_token,
PRIVATE_token,
PRAGMA_token,
PACKAGE_token,
OUT_token,
OTHERS_token,
OR_token,
OF_token,
NULL_token,
NOT_token,
NEW_token,
MOD_token,
LOOP_token,
LIMITED_token,
IS_token,
IN_token,
IF_token,
GOTO_token,
GENERIC_token,
FUNCTION_token,
FOR_token,
EXIT_token,
EXCEPTION_token,
ENTRY_token,
END_token,
ELSIF_token,
ELSE_token,
DO_token,
DIGITS_token,
DELTA_token,
DELAY_token,
DECLARE_token,
CONSTANT_token,
CASE_token,
BODY_token,
BEGIN_token,
AT_token,
ARRAY_token,
AND_token,
ALL_token,
ALIASED_token,
ACCESS_token,
ACCEPT_token,
ABSTRACT_token,
ABS_token,
ABORT_token,
Dummy_Token);
procedure Reset(Filename : in String);
function Get_Token return Token;
function Get_Token_String return String;
function Get_Current_Line return Natural;
function Get_Current_Column return Natural;
procedure Close_Files;
end trans;