summaryrefslogtreecommitdiff
path: root/src/packrat-text.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2020-12-04 15:28:52 +1100
committerJed Barber <jjbarber@y7mail.com>2020-12-04 15:28:52 +1100
commit0abd0d9444164cbb85df0e5a50451b5f98fef3db (patch)
tree1e5a075df2edc93e8c6919e5837149445fd2b3ba /src/packrat-text.ads
parentad215be09de49dfb60245285d6ce20a0b58fdeac (diff)
Instantiation package improvements
Diffstat (limited to 'src/packrat-text.ads')
-rw-r--r--src/packrat-text.ads29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/packrat-text.ads b/src/packrat-text.ads
index 3d239e8..c3a5c51 100644
--- a/src/packrat-text.ads
+++ b/src/packrat-text.ads
@@ -1,8 +1,37 @@
+with
+
+ Packrat.Standard;
+
+
+generic
+
+ type Lexer_Labels is (<>);
+ type Parser_Labels is (<>);
+
package Packrat.Text is
+ package Standard is new Packrat.Standard
+ (Lexer_Labels => Lexer_Labels,
+ Parser_Labels => Parser_Labels,
+ Element_Type => Character,
+ Element_Array => String);
+
+ package Wide is new Packrat.Standard
+ (Lexer_Labels => Lexer_Labels,
+ Parser_Labels => Parser_Labels,
+ Element_Type => Wide_Character,
+ Element_Array => Wide_String);
+
+ package Wide_Wide is new Packrat.Standard
+ (Lexer_Labels => Lexer_Labels,
+ Parser_Labels => Parser_Labels,
+ Element_Type => Wide_Wide_Character,
+ Element_Array => Wide_Wide_String);
+
+
end Packrat.Text;