diff options
author | Jed Barber <jjbarber@y7mail.com> | 2020-12-03 16:42:44 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2020-12-03 16:42:44 +1100 |
commit | 337a6217732217b537f2459451f4c563bc651cc8 (patch) | |
tree | 8651bab1ac3c4aee6145c47f0d7ab85efbe81e85 /src/packrat-text-no_lex.ads | |
parent | 393870127fe767a0359182ccf80ee9fb48573f97 (diff) |
Instantiation packages for text parsing
Diffstat (limited to 'src/packrat-text-no_lex.ads')
-rw-r--r-- | src/packrat-text-no_lex.ads | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/packrat-text-no_lex.ads b/src/packrat-text-no_lex.ads new file mode 100644 index 0000000..2826df5 --- /dev/null +++ b/src/packrat-text-no_lex.ads @@ -0,0 +1,34 @@ + + +with + + Packrat.Traits, + Packrat.Parse_Graphs, + Packrat.Parsers; + + +generic + + type Parser_Labels is (<>); + +package Packrat.Text.No_Lex is + + + package Parser_Traits is new Packrat.Traits + (Label_Enum => Parser_Labels, + Element_Type => Character, + Element_Array => String); + + package Parse_Graphs is new Packrat.Parse_Graphs + (Traits => Parser_Traits); + + package Parsers is new Packrat.Parsers + (Traits => Parser_Traits, + Graphs => Parse_Graphs); + + subtype Parser_Result is Parse_Graphs.Parse_Graph; + + +end Packrat.Text.No_Lex; + + |