summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2020-12-05 00:28:15 +1100
committerJed Barber <jjbarber@y7mail.com>2020-12-05 00:28:15 +1100
commit01862116fefc0fb241beca2fb5402195dc933f7e (patch)
tree43f1bf4882dd8a80348cd743a63f453df2be713d /example
parenta21cc8153592700ae7cb2cdfbb24b377e096a22a (diff)
Moved Finished_Tokens and related types to Tokens package
Diffstat (limited to 'example')
-rw-r--r--example/sentence.adb8
1 files changed, 7 insertions, 1 deletions
diff --git a/example/sentence.adb b/example/sentence.adb
index f522b5f..5270d3a 100644
--- a/example/sentence.adb
+++ b/example/sentence.adb
@@ -115,12 +115,18 @@ begin
Put_Line ("Lexer token output:");
for T of Lexed_Tokens loop
- Put (My_Rat.Lexer_Traits.Tokens.Debug_String (T));
+ Put (My_Rat.Lexer_Tokens.Debug_String (T));
end loop;
New_Line;
Put_Line ("Parser graph output:");
Put_Line (My_Rat.Parse_Graphs.Debug_String (Result_Graph));
+ New_Line;
+
+ Put_Line ("Root tokens:");
+ for T of Result_Graph.Root_Elements loop
+ Put (My_Rat.Parser_Tokens.Debug_String (T));
+ end loop;
end Sentence;