Commit graph

332 commits

Author SHA1 Message Date
32b2cb5d1f
wip 2024-12-13 19:53:36 +01:00
41c02465be
repr tree: add type alias ReprTreeArc 2024-11-17 20:38:36 +01:00
dad789227c
char editor: move ctx to separate file 2024-11-16 22:21:41 +01:00
2c2268c918
repr tree: create reprtree with a single path from type ladder 2024-11-03 01:39:57 +01:00
fe4b571b8c
lib-nested-tty: reactivate list-cursor widget via new TreeNavExt trait 2024-11-02 19:21:10 +01:00
e09f3e5656
add lines exapmle 2024-11-02 19:19:38 +01:00
b2083aec4c
add dictionary example 2024-10-30 19:08:36 +01:00
50fe43df97
context: switch to BimapTypeDict 2024-10-28 21:28:38 +01:00
af34fc9976
add more seq->list & list->vec morphisms 2024-10-28 21:17:54 +01:00
689ac95486
posint get_value() : ignore invalid digits 2024-09-02 00:14:10 +02:00
9b5dfc9cca
posint example: switch between synced editors based on list of editor types 2024-09-02 00:14:10 +02:00
9f53b65074
tty backend: hooks to setup display for binary, octal, decimal \& hex notations of PosInt 2024-09-02 00:14:10 +02:00
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