summaryrefslogtreecommitdiff
path: root/src/packrat-text-no_lex.ads
blob: 2826df539a5e22150d95be0be3392c66c9e64c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;