summaryrefslogtreecommitdiff
path: root/test/packrat-lexer-debug.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2019-01-14 19:03:33 +1100
committerJed Barber <jjbarber@y7mail.com>2019-01-14 19:03:33 +1100
commit5a01394fadfe73cc9bfdc3576a58ac3cd4dcb1f2 (patch)
treeaf359ceafee1b8e1dc7d37c9027ac941c2b37ad0 /test/packrat-lexer-debug.ads
parentc0ba281a0bf3edc564a4fee61375691f35632be4 (diff)
Implemented details of Lexer_Context type
Diffstat (limited to 'test/packrat-lexer-debug.ads')
-rw-r--r--test/packrat-lexer-debug.ads29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/packrat-lexer-debug.ads b/test/packrat-lexer-debug.ads
index e8ddf7b..e68d6f4 100644
--- a/test/packrat-lexer-debug.ads
+++ b/test/packrat-lexer-debug.ads
@@ -1,5 +1,10 @@
+with
+
+ Ada.Containers.Vectors;
+
+
generic
package Packrat.Lexer.Debug is
@@ -26,12 +31,36 @@ package Packrat.Lexer.Debug is
return String;
+
+
+ type Token_Vector is private;
+
+ function So_Far
+ (This : in Lexer_Context)
+ return Token_Vector;
+
+ function Position
+ (This : in Lexer_Context)
+ return Positive;
+
+ function Status
+ (This : in Lexer_Context)
+ return Result_Status;
+
+ function Pass
+ (This : in Lexer_Context)
+ return access Element_Array;
+
+
private
Empty_Fail : constant Combinator_Result := Packrat.Lexer.Empty_Fail;
+ type Token_Vector is new Token_Vectors.Vector with null record;
+
+
end Packrat.Lexer.Debug;