summaryrefslogtreecommitdiff
path: root/src/packrat-lexer.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2019-01-11 14:23:49 +1100
committerJed Barber <jjbarber@y7mail.com>2019-01-11 14:23:49 +1100
commit554d2ab14921c48d628b0ffa86cc7492836477ac (patch)
tree4f041b78f2e8fc5c8b9f11fdf35909b1f600cfe9 /src/packrat-lexer.adb
parent04d0e994b69cb8d80dcd8beca17d8fe2eadaea6b (diff)
Restructured Lexer combinators to use record return type
Diffstat (limited to 'src/packrat-lexer.adb')
-rw-r--r--src/packrat-lexer.adb58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/packrat-lexer.adb b/src/packrat-lexer.adb
new file mode 100644
index 0000000..f93b65b
--- /dev/null
+++ b/src/packrat-lexer.adb
@@ -0,0 +1,58 @@
+
+
+package body Packrat.Lexer is
+
+
+ procedure Initialize
+ (This : in out Combinator_Result) is
+ begin
+ null;
+ end Initialize;
+
+
+ procedure Adjust
+ (This : in out Combinator_Result) is
+ begin
+ null;
+ end Adjust;
+
+
+ procedure Finalize
+ (This : in out Combinator_Result) is
+ begin
+ null;
+ end Finalize;
+
+
+
+
+
+ function Create_Result
+ (Length : in Natural;
+ Status : in Result_Status;
+ Value : in Element_Array)
+ return Combinator_Result is
+ begin
+ return Fail_Result;
+ end Create_Result;
+
+
+ function Join
+ (Left, Right : in Combinator_Result)
+ return Combinator_Result is
+ begin
+ return Fail_Result;
+ end Join;
+
+
+ function Is_Failure
+ (This : in Combinator_Result)
+ return Boolean is
+ begin
+ return True;
+ end Is_Failure;
+
+
+end Packrat.Lexer;
+
+