Commit graph

320 commits

Author SHA1 Message Date
4b7d929abc
morphisms to copy edittree from <List Digit> to <PosInt ..> 2024-09-02 00:14:10 +02:00
38c772389f
build repr tree 2024-09-02 00:14:09 +02:00
0a6405b08e
minor stuff & style 2024-09-02 00:14:09 +02:00
7f18fd7755
list editor: get_data_port() make map on list instead of seq 2024-09-02 00:14:09 +02:00
6ed456e3ff
add morphisms between machine.UInt64 and PosInt 2024-09-02 00:14:09 +02:00
aed4cad1e4
add morphisms to create edittree from/to digit/char and generic lists 2024-09-02 00:14:09 +02:00
b3d0e4f03c
add more types to detach 2024-09-02 00:14:09 +02:00
fb796cda04
add static TypeIDs to create basic types without context 2024-08-23 13:56:27 +02:00
e7331b36ae
radix convert: accept radix=0 for native digit radix (2^64) 2024-08-22 17:39:02 +02:00
0bcfd7a65a
call edittree_hook in morphisms already, add edittree() getter in ReprTreeExt to further simplify application code 2024-08-09 23:00:31 +02:00
7762fa4b12
simplify posint example
remove setup_hex_master() / setup_dec_master() functions and instead directly call apply_morphism()
2024-08-09 02:33:48 +02:00
786866746c
integer radix convert: insert one zero digit in case value is zero 2024-08-09 02:31:26 +02:00
8d637a6f32
add ReprTree::from_str() to simplify creation of initial representation nodes 2024-08-06 16:29:28 +02:00
6e2b82585e
in context.apply_morphism() now use find_morphism_path() to automatically find chained morphisms to create projections in ReprTree 2024-08-06 16:20:02 +02:00
ffeb4b8e73
repr tree: create new VecBuffer in case attach_to() is called on Vec<EditTree> 2024-08-06 15:40:05 +02:00
508e716a6a
repr tree: split leaf & node into separate files 2024-08-04 19:27:36 +02:00
4c0e9da2d3
fixup examples
also fix behaviour of insert_leaf() & attach_leaf_to() when type of current repr-node occurs inside the type of the leaf
2024-08-03 15:44:04 +02:00
830ce613ea
example: two editors with different radices 2024-08-02 22:43:00 +02:00
a3c701ce88
automatically generate list-map morphisms in find_morphism()
this allows us to now to create <List EditTree> from <List Char>
with apply_morphism()
2024-08-02 21:58:14 +02:00
6e8bb0aeb5
apply_list_map_morphism 2024-08-01 18:35:57 +02:00
e86070da50
fixes to make dual-editor with big/little endian projection work 2024-07-21 18:16:43 +02:00
bb846afc7c
ReprTree: add detach functions & attach_to helpers for Arc<ReprTree> 2024-06-06 15:21:52 +02:00
ab51ea5d3d
rename pty&tty servers 2024-06-05 02:16:09 +02:00
cdf03c9aae
improve morphisms for integer example 2024-06-03 17:10:52 +02:00
d02f33ee17
ReprTree: add halo type 2024-05-31 00:07:25 +02:00
fdecc29e80
clean up posint example & use u64 instead of usize in PositionalUInt trait 2024-05-30 23:11:50 +02:00
40a5da4512
int example & testing out more int projections 2024-05-25 00:39:47 +02:00
91e56d876d
digit editor: create char repr if not available 2024-03-23 21:32:12 +01:00
edf088b853
add vec-access to ReprTree and morphism to collect <List Char> to <Vec Char> 2024-03-23 20:57:07 +01:00
473dd5f4dc
add short READMEs for examples 2024-03-21 18:17:04 +01:00
33e97ed5e3
cleanup examples
- move initialization of edittree-hook into lib-nested-tty
- split examples into separate digit/string examples
2024-03-21 13:27:09 +01:00
ecaa74ccfd
add morphism to extract value-list from ListEditor 2024-03-21 10:37:24 +01:00
658f5c1000
refactor ReprTree
- ReprLeaf with In- & Out-Ports
- Optional Buffers
2024-03-15 18:54:45 +01:00
03dc9f1133
add ReprTreeExt trait for Arc<Rwlock<>> 2024-03-10 19:27:51 +01:00
d7d0a46c7b
move digit into separate module 2024-03-10 16:17:24 +01:00
77d9e64531
add notes, formatting, shallow simplifications 2024-03-10 14:04:08 +01:00
73d457ba24
fix dependencies in pty-server & display-server-tty 2024-02-10 23:21:22 +01:00
647a5d77b6
list: reactivate item creation on split 2024-01-23 22:00:38 +01:00
e46c143dec
test different style for <List Char>, add meta-chars to ctx globally to avoid deadlock 2024-01-18 19:44:14 +01:00
0ac4a34743
example wip: create display for edit tree 2024-01-18 19:44:11 +01:00
863fe95848
example wip 2024-01-18 19:44:08 +01:00
fdf2d60b35
MorphismBase: fix deadlock 2024-01-18 19:44:04 +01:00
8471c7a90f
move morphism to editors/char mod 2024-01-18 19:44:02 +01:00
caa0c9a5c0
define char-editor constructor as morphism 2024-01-18 19:43:59 +01:00
668b0b8b96
rename NestedNode to EditTree 2024-01-18 19:43:57 +01:00
47a35f22b7
some work on repr tree example 2024-01-18 19:43:54 +01:00
97a5b580df
wip: deactivate code to make it compileable 2024-01-18 19:43:45 +01:00
193b8c8cac
implement MorphismBase, remove data from NestedNode 2024-01-18 19:32:49 +01:00
834bb49b5e
add tty/pty server as separate crates 2024-01-18 19:05:25 +01:00
be3eefc3a5
edit tree: split node struct into sub structs 2023-11-29 18:12:04 +01:00