Commit Graph

138 Commits

Author SHA1 Message Date
ed 3e064f6443 progress on sanity_tests.c, adding back md_str8_styllize
Eventually a heavy reduction of base & OS should be provided via libgen or done here to reduce the overall surface area of the library for the user.
Base and os were dragged from raddbg and the original metadesk didn't need as many definitions.
2025-02-13 09:53:46 -05:00
ed 28d0c85771 preogress on sanity_tests.c, NodeFlags -> MD_NodeFlags (somehow not renamed) 2025-02-13 07:41:10 -05:00
ed 0bf3f13c83 omitting tests offloaded to metadesk_libgen 2025-02-12 15:48:17 -05:00
ed 1fad37ad90 began to work on docs 2025-02-12 12:08:41 -05:00
ed 99097b765a attempting to see compatability with old metadesk tests... not looking good... 2025-02-12 00:19:26 -05:00
ed 90836817e9 got c11_sanity.c working (both segregated and single-header)
from now on I'm assuming both will work.
2025-02-11 20:26:03 -05:00
ed 4976d79ab3 attempting to do a parse on stb_sprintf.h for segregated 2025-02-11 15:32:18 -05:00
ed d84c47c5ee confirmed code_sanity.c, doing gen_c11 next 2025-02-10 14:06:05 -05:00
ed 42b87be084 oops 2025-02-10 13:43:38 -05:00
ed 03ae07485b fix bugs with inline linked list macros 2025-02-10 12:39:22 -05:00
ed 632bc6d47f memory fixes 2025-02-10 12:00:39 -05:00
ed 716f8a7f3f coallpsed arena -> allocatorinfo : command_line.h/c 2025-02-09 12:07:44 -05:00
ed c8cb9f3995 prepping to collapse Arena receiving functions to those that receive AllocatorInfo
perf impact of the indirection should be minimal, reduces code duplication.

Ideally we'd use gencpp to just have the user specify what they want, then modify which proc is avail by doing the refactors required for using either
However, it can't process execution bodies yet or expressions so thats not possible.

The other way is to just utilize _Generic to generalize the codepath so that it collapses neater but that leads to a ton of implementation getting lifted to preprocessing... so no.
2025-02-09 11:51:50 -05:00
ed 0485058938 got past init 2025-02-09 05:40:04 -05:00
ed d867a8b0c0 setup os_init() for manually starting up os_context 2025-02-09 02:20:36 -05:00
ed d82af845bc forgot about stb_sprintf.h... 2025-02-08 23:53:35 -05:00
ed 50c7853b9f its compiling... (prepping for runtime testing) 2025-02-08 23:27:06 -05:00
ed 68fadce5c6 starting to review mdesk.h/c 2025-02-08 11:10:23 -05:00
ryanfleury 95ea556f34 Merge branch 'master' into dev 2022-02-17 14:19:24 -07:00
ryanfleury ecfe3314b6 robustify against /W4 on MSVC 2022-02-17 14:14:50 -07:00
Ryan Fleury 7f12b05741 sanity test for unscoped set newline-allowance (after first child) bug (?) 2021-12-29 09:09:34 -07:00
Mārtiņš Možeiko 08bfd28169 macOS support 2021-11-14 18:17:37 -08:00
Allen Webster 8d4d2d2c3a naming pass; stub in expression API docs 2021-10-24 13:02:13 -07:00
Miguel Lechon 47613b5563 [expr parser] Communicate expression operator table bake errors through callback. 2021-10-24 17:11:28 +02:00
Allen Webster 126fab22df [examples] c like expressions example 2021-10-09 22:07:52 -07:00
Allen Webster ac9f415180 [examples] write expressions intro example 2021-10-09 20:58:33 -07:00
Allen Webster 39e10cd246 [expression parser] use the operator pointer right inside the expression node 2021-10-09 20:30:05 -07:00
Miguel Lechon 343b239fa1 [expr parser] Reject multitoken and non-symbol, non-id token operators (note 3). 2021-10-06 08:02:46 +02:00
Miguel Lechon 88bf5be37c [expr parser] Postfix (),[],{},[),(] behave the same (note 2). 2021-10-04 20:18:46 +02:00
Miguel Lechon 94cd3ced02 [expr parser] Disallow non-postfix set-like operators (note 1b). 2021-10-04 07:57:45 +02:00
Miguel Lechon d1745050dd [expr parser] Treat all sets as leaves (note 1a). 2021-10-03 18:38:13 +02:00
Allen Webster 1372db5610 [expr parser] a few misc bits of tidying - poking around for next steps - notes on issues 2021-10-02 20:04:00 -07:00
Allen Webster f635b2d066 [expr parser] fix error reporting for unfinished expression inside paren/bracket 2021-10-01 23:38:36 -07:00
Allen Webster 2f6ada618a [expr parsing] handle the 'errors' monad through the parse context instead of through return composition 2021-10-01 23:11:05 -07:00
Allen Webster ed377ebd33 [expr parsing] rename MD_ExprNode -> MD_Expr 2021-10-01 22:52:45 -07:00
Allen Webster 04e65af953 [expr parser] rearrange expression errors to point right at the original metadesk nodes as much as possible 2021-10-01 22:08:40 -07:00
Allen Webster 8cbd0cc2dc [expr parser] fix test fails; refactoring error reporting 2021-10-01 21:03:33 -07:00
Allen Webster 9ac946cf07 [expr parser] change the operator definition so that an MD_Node is not required 2021-10-01 20:31:06 -07:00
Allen Webster 4ce22d786c [expr parser] getting familiar with the expression parser 2021-10-01 20:03:50 -07:00
Allen Webster 70e630cab6 more styl consistency 2021-09-25 17:01:24 -07:00
Allen Webster 0a07520fac reserve-commit-chain arenas 2021-09-17 18:07:38 -07:00
Allen Webster cbd755852d Merge branch 'dev' of https://github.com/Dion-Systems/metadesk into dev 2021-09-17 00:48:13 -07:00
Allen Webster b6cbff2eb1 tidying up naming scheme and parameters in helper inspection API; [examples] sketch of type metadata example 2021-09-17 00:48:06 -07:00
Ryan Fleury 1b31e6f41d work/tests for reconstruction string' 2021-09-17 01:06:57 -06:00
Allen Webster 883c384e38 [examples] hello_world.c first pass; parse check touch ups; API touch ups 2021-09-16 20:06:20 -07:00
Allen Webster e5c9b49c83 [examples] write labels.mdesk with examples of labels 2021-09-13 18:09:38 -07:00
Allen Webster feafba93f3 tidy up the reference macro, rename dereference function; [examples] tidy up the commentary about for loop macros 2021-09-13 17:21:12 -07:00
Miguel Lechon b83546a60a [expr parser] More tests. 2021-09-12 19:55:14 +02:00
Allen Webster 6dd7acb1a2 iterating on debug dump and reconstruction API details 2021-09-10 14:46:41 -07:00
Miguel Lechon b2c901d60f [expr parser] Brace/bracket unary op required for set leaves. 2021-09-09 12:48:04 +02:00