Going to attempt the tree one more time.

This commit is contained in:
Tom Alexander 2022-11-26 22:57:05 -05:00
parent 2bb6f50cba
commit f93f1c5950
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,4 @@
mod new_context;
mod nom_context; mod nom_context;
mod parser_with_context; mod parser_with_context;
mod text; mod text;

10
src/parser/new_context.rs Normal file
View File

@ -0,0 +1,10 @@
// fn test_context() {
// let foo = "foo";
// let context = ContextTree::new();
// let child1_context = PreviousElementNode { dummy: foo };
// let child1 = context.with_additional_node(&child1_context);
// let child2_context = FailMatcherNode {
// fail_matcher: ChainBehavior::AndParent(Some(&recognize_bold_end)),
// };
// let child2 = child1.with_additional_node(&child2_context);
// }