summaryrefslogtreecommitdiff
path: root/src/packrat-parse_graphs.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2020-05-23 15:38:07 +1000
committerJed Barber <jjbarber@y7mail.com>2020-05-23 15:38:07 +1000
commit94609aeabcd441caa7c9d41f54166b3f3ede1442 (patch)
tree482ac8f7a2d117b370f9bd29800cc17e3269d582 /src/packrat-parse_graphs.adb
parent6b3a2f0ce7c8c3aae32811936441277728f69a6b (diff)
Added Is_Ambiguous function to Parse_Graphs
Diffstat (limited to 'src/packrat-parse_graphs.adb')
-rw-r--r--src/packrat-parse_graphs.adb16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/packrat-parse_graphs.adb b/src/packrat-parse_graphs.adb
index 16b74dc..c911fb4 100644
--- a/src/packrat-parse_graphs.adb
+++ b/src/packrat-parse_graphs.adb
@@ -232,6 +232,22 @@ package body Packrat.Parse_Graphs is
+ function Is_Ambiguous
+ (Container : in Parse_Graph)
+ return Boolean is
+ begin
+ for N of Container.Nodes loop
+ if Finish_List (Container, N)'Length > 1 then
+ return True;
+ end if;
+ end loop;
+ return False;
+ end Is_Ambiguous;
+
+
+
+
+
function Vector_To_Array
(Input : in Type_Vectors.Vector)
return Array_Type is