Commit graph

32 commits

Author SHA1 Message Date
3f1397735c
improve code generation
- improve usage of FUSE
- implement seq-map for different representations
- fix C-types in morph-function arguments
- collect active types and put typedef into header
- add generate_main() to create stdio-morphism
2025-04-02 23:32:06 +02:00
67cec64dfc
fix codegen for seq-map 2025-04-02 15:01:45 +02:00
98592aa596
fuse results of sub- morphisms in complex morphisms 2025-04-02 14:37:31 +02:00
35b747ea15
fix local src/dst types in complex morphisms 2025-04-02 14:31:47 +02:00
39cba1ee57
improve symbol names in generated c code 2025-04-02 14:11:17 +02:00
583892f10d
wip struct morphisms 2025-04-01 18:23:18 +02:00
21bb33193a
wip struct morphisms 2025-03-24 10:14:25 +01:00
1869176bb7
make MsbCont morphism generic over item type 2025-03-20 19:49:03 +01:00
f67f8c0118
replace x86.T with native.T 2025-03-20 16:28:16 +01:00
e29a5a3475
generate all length prefix array variants via macro 2025-03-20 16:16:49 +01:00
8b8acb81a6
generated main(): use sizeof for buffer sizes 2025-03-18 14:09:01 +01:00
5d1ea93e20
add float & double representations to C-generator 2025-03-18 14:07:14 +01:00
6cfb25a1a7
fix warnings 2025-03-15 19:48:02 +01:00
45453a04f4
split main.rs into separate files 2025-03-15 19:37:03 +01:00
5a64334b1d
add include header in morphism-base 2025-03-15 18:28:57 +01:00
5993923338
apply substitution before creating symbol name when generating instantiations 2025-03-15 18:27:21 +01:00
ffd190890d
improve encode_type_to_symbol to handle complex types 2025-03-15 18:22:46 +01:00
186c12fc5d
improve output 2025-02-20 05:35:40 +01:00
44ff30e599
encode all literal-character types as ascii code for compatiblity with c symbol names 2025-02-20 05:26:37 +01:00
dfc9ced33c
msb continuation ((ammend)) 2025-02-20 05:24:50 +01:00
4a5977ec8e
add morphisms to Msb-ContinuationBit Sequences 2025-02-20 05:22:28 +01:00
b88251b9c4
add length_prefix_array_map_8_to_8 2025-02-20 05:16:31 +01:00
cea1f36e63
read morphism body definitions from morphism-base file and generate instantiations based on type-variable substitutions 2025-02-16 17:08:55 +01:00
3f4a99ad79
generate instanitated symbol name 2025-02-16 00:55:14 +01:00
afa326ed23
more work on code generation 2025-02-14 14:07:18 +01:00
959d2f9185
wip generating map morphism 2025-02-05 11:26:55 +01:00
59c0ea8e57
add morphisms to MorphismBase, first generation of C code for pipe-utility from ladder types 2025-02-03 19:21:53 +01:00
1068b8ed45
load multiple morphism base files 2025-02-03 18:41:14 +01:00
88978d9008
function to determine C-type to represent a ladder type, for morphism generate expected C-signatures & calls 2025-02-03 17:55:18 +01:00
e500a24d2a
read morphism base from file 2025-02-01 12:40:45 +01:00
f0f8adbbbc
parse type terms 2025-01-31 17:56:08 +01:00
d66dc0e78b
initial parser for morphism-base using chumsky 2025-01-29 19:37:33 +01:00