Improved dispatchers with richer results and added predicate and regular expression based dispatchers
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import * as CF from '@efforting.tech/data/field-configuration-factories';
|
||||
|
||||
import { inspect } from 'node:util';
|
||||
|
||||
import { Indention_Mode, Text_Settings, string_has_contents, indented_line_iterator } from '@efforting.tech/data/string-utilities';
|
||||
import { Text_Node } from '@efforting.tech/text/basic-tree';
|
||||
import { Text_Tree_Node, Text_Tree_Settings } from '@efforting.tech/text/basic-tree';
|
||||
|
||||
|
||||
const ts = Text_Settings.load({
|
||||
indention_mode: 'TABULATORS',
|
||||
const ts = Text_Tree_Settings.load({
|
||||
text: {
|
||||
indention_mode: 'TABULATORS',
|
||||
},
|
||||
});
|
||||
|
||||
const example_string =
|
||||
@@ -30,7 +30,7 @@ branch3
|
||||
`;
|
||||
|
||||
|
||||
const root = Text_Node.from_string(ts, example_string);
|
||||
const root = Text_Tree_Node.from_string(ts, example_string);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user