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-lexer.ads | |
parent | d13d3d981de2d178b7a27f2b6db78146c9d560ff (diff) |
Packrat.Lexer.Combinators specification
Diffstat (limited to 'src/packrat-lexer.ads')
-rw-r--r-- | src/packrat-lexer.ads | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/packrat-lexer.ads b/src/packrat-lexer.ads new file mode 100644 index 0000000..611a407 --- /dev/null +++ b/src/packrat-lexer.ads @@ -0,0 +1,30 @@ + + +generic + + type Label_Enum is (<>); + type Element is private; + type Element_Array is array (Positive range <>) of Element; + + with package Gen_Tokens is new Tokens (Label_Enum, Element, Element_Array); + +package Packrat.Lexer is + + + type Combinator is access function + (Input : in Element_Array; + Start : in Positive; + Length : out Natural; + Value : out Element_Array) + return Result; + + + type Combinator_Array is array (Positive range <>) of Combinator; + + +private + + +end Packrat.Lexer; + + |