From 67edc77677d366d4dc0ff42154c79a1d87c2dd29 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 10 Jan 2019 15:27:56 +1100 Subject: Packrat.Lexer.Combinators specification --- src/packrat.ads | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/packrat.ads') diff --git a/src/packrat.ads b/src/packrat.ads index a17e499..467c463 100644 --- a/src/packrat.ads +++ b/src/packrat.ads @@ -9,7 +9,11 @@ with package Packrat is - Parse_Error : exception; + type Result is (Failure, Partial, Success); + + + Parser_Error : exception; + Lexer_Error : exception; @@ -103,6 +107,7 @@ package Packrat is type Token is new Ada.Finalization.Controlled with private; + type Token_Array is array (Positive range <>) of Token; function Create -- cgit