diff options
author | Jed Barber <jjbarber@y7mail.com> | 2019-01-10 15:27:56 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2019-01-10 15:27:56 +1100 |
commit | 67edc77677d366d4dc0ff42154c79a1d87c2dd29 (patch) | |
tree | d708a160d257fe26a910930df618e41acc6928d4 /src/packrat.ads | |
parent | d13d3d981de2d178b7a27f2b6db78146c9d560ff (diff) |
Packrat.Lexer.Combinators specification
Diffstat (limited to 'src/packrat.ads')
-rw-r--r-- | src/packrat.ads | 7 |
1 files changed, 6 insertions, 1 deletions
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 |