blob: 7f124e1fbddd2a6d889bec2a8ee4f1f73287cc42 (
plain)
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
|
with
Ada.Strings.Unbounded;
package Packrat is
type Result_Status is (Failure, Needs_More, Optional_More, Success);
Parser_Error : exception;
Lexer_Error : exception;
private
function "+"
(S : in String)
return Ada.Strings.Unbounded.Unbounded_String
renames Ada.Strings.Unbounded.To_Unbounded_String;
function "-"
(US : in Ada.Strings.Unbounded.Unbounded_String)
return String
renames Ada.Strings.Unbounded.To_String;
end Packrat;
|