summaryrefslogtreecommitdiff
path: root/src/packrat-parse_graphs.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2020-12-13 23:22:31 +1100
committerJed Barber <jjbarber@y7mail.com>2020-12-13 23:22:31 +1100
commit88b57c216a6ac2f1565686a66448c155f571852c (patch)
tree4df26d3f2ccb7ccac66fc45a81ad840c2cbc038b /src/packrat-parse_graphs.ads
parent8834bc154280e443aeac618eb433e365d82253c6 (diff)
Bugfixes, esp Delete_Unreachable
Diffstat (limited to 'src/packrat-parse_graphs.ads')
-rw-r--r--src/packrat-parse_graphs.ads30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/packrat-parse_graphs.ads b/src/packrat-parse_graphs.ads
index e13bfc7..b302004 100644
--- a/src/packrat-parse_graphs.ads
+++ b/src/packrat-parse_graphs.ads
@@ -335,6 +335,19 @@ private
+ -- This 'use type' is to avoid some ambiguities with "=" functions when
+ -- instantiating the Base package.
+ use type Traits.Tokens.Token_Type;
+
+ package Base is new Directed_Graphs
+ (Node_ID_Type => Node_ID_Type,
+ Edge_ID_Type => Edge_ID_Type,
+ Node_Label_Type => Node_Label_Type,
+ Edge_Label_Type => Edge_Label_Type);
+
+
+
+
function To_Node
(Container : in Parse_Graph;
Token : in Traits.Tokens.Token_Type)
@@ -350,19 +363,10 @@ private
Node : in Node_ID_Type)
return Boolean;
-
-
-
- -- This 'use type' is to avoid some ambiguities with "=" functions when
- -- instantiating the Base package.
- use type Traits.Tokens.Token_Type;
-
- package Base is new Directed_Graphs
- (Node_ID_Type => Node_ID_Type,
- Edge_ID_Type => Edge_ID_Type,
- Node_Label_Type => Node_Label_Type,
- Edge_Label_Type => Edge_Label_Type);
-
+ function Unreachable_Outbound
+ (Container : in Parse_Graph;
+ Node : in Node_ID_Type)
+ return Base.Edge_Array;