From 4e42761354c2de557c0166d46aabe9dcd9b77073 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 15 Jan 2019 19:34:37 +1100 Subject: Redesigned Lexer Scan functions slightly, added tests for them --- packrat_parser_lib_notes.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packrat_parser_lib_notes.txt') diff --git a/packrat_parser_lib_notes.txt b/packrat_parser_lib_notes.txt index e48ebe8..1ae9707 100644 --- a/packrat_parser_lib_notes.txt +++ b/packrat_parser_lib_notes.txt @@ -182,8 +182,6 @@ Scan_Only - function that returns an array of lexed tokens - takes a lexer status as input to resuem a lex, but will treat it as a constant unlike the others - if all lexer components return "partial" or fail then raises a lexer_error -Scan_Set_Only - - as above, except is a procedure that uses a fixed size array as output with a padding token Scan_With - function that returns an array of lexed tokens - when it runs out of input it uses the supplied function to get more input until that function @@ -192,6 +190,9 @@ Scan_With Scan_Set_With - as above, except is a procedure that uses a fixed size array as output with a padding token +(determined to be redundant) +Scan_Set_Only + (type signature of these are: input of an opaque lex_component_input type output of an opaque lex_component_output type -- cgit