From 81f7e19f212f9d1ac75e04e62933e6c918219cfc Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 9 Jan 2019 22:58:10 +1100 Subject: Packrat.Tokens added, tested, and functional --- packrat_parser_lib_notes.txt | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'packrat_parser_lib_notes.txt') diff --git a/packrat_parser_lib_notes.txt b/packrat_parser_lib_notes.txt index 8bcac69..8e98d56 100644 --- a/packrat_parser_lib_notes.txt +++ b/packrat_parser_lib_notes.txt @@ -214,6 +214,10 @@ Pretty_Print To_String Pretty_Print +(for tokens) +To_String +Pretty_Print + @@ -244,6 +248,36 @@ Decode +Packrat.Tokens + - nested package, defines a datatype important throughout lexing/parsing + - generic over the array type of whatever is being lexed/parsed and the enum of valid token labels + - contains an enum identifier, the start position, the finish position plus one, and the token value + +List of datatypes: +Token (tagged, controlled, but not limited) + +List of funcs: +Create +Initialized + +Label +Value +Start +Finish + + + + +Packrat.Graphs + +List_of_datatypes: +Parse_Graph + +List of funcs: + + + + Ratnest @@ -257,6 +291,18 @@ Run_Tests Ratnest.Tests List of funcs: +Valid_Message_Check +Valid_Identifier_Check +Join_Check +Encode_1_Check +Encode_2_Check +Encode_3_Check +Encode_4_Check +Decode_Check + +Token_Adjust_Check +Token_Store_Check + In_Set_Check Not_In_Set_Check -- cgit