296 Commits

Author SHA1 Message Date
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 0b04757575 [expr parser] sort 'NodeNextWithLimit' with other introspection helpers 2021-10-01 23:13:05 -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 69ce78c71d [expr parser] expose the last of the hidden functions 2021-10-01 22:51:41 -07:00
Allen Webster 891d71005d [expr parser] factor iterators out of the parser context 2021-10-01 22:45: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 b41590525e [expr parser] fuse operator with operator node 2021-10-01 20:42:14 -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 d383a3122f [examples] generate type info declarations; generate member tables 2021-09-25 19:26:06 -07:00
Allen Webster 70e630cab6 more styl consistency 2021-09-25 17:01:24 -07:00
Allen Webster f65aa9f76f style consistency pass 2021-09-25 16:50:55 -07:00
Allen Webster e74ddc0f27 remove GetCap 2021-09-25 16:45:53 -07:00
ryanfleury 4657327976 override for arena cap getter 2021-09-24 20:47:23 -06:00
ryanfleury 6ba42a67e6 make sprintf an overrideable 2021-09-24 19:09:46 -06:00
ryanfleury c73e6961a5 for real this time 2021-09-24 18:57:32 -06:00
ryanfleury 612fad86cf allow optional include of stb sprintf 2021-09-24 18:56:25 -06:00
Allen Webster cdb170bb86 [examples] generate types and function decarations 2021-09-24 16:41:26 -07:00
Allen Webster 426de7ca2e [examples] enum member lists 2021-09-19 17:26:51 -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
Ryan Fleury 4a8f470149 remove generate flags from reconstruction string gen 2021-09-16 23:58:43 -06:00
Allen Webster fd191a3181 Merge branch 'dev' of https://github.com/Dion-Systems/metadesk into dev 2021-09-16 22:52:39 -07:00
Allen Webster 7d82d4f0ef [examples] custom user errors 2021-09-16 22:52:29 -07:00
Ryan Fleury 424bd25508 treat all cmd line options after a -- as plain inputs 2021-09-16 23:36:17 -06:00
Ryan Fleury 07ff2afa72 set implicitly-delimited separator set node flags correctly 2021-09-16 23:31:28 -06:00
Ryan Fleury bd754c1816 zero-init 2021-09-16 22:44:52 -06:00
Allen Webster 39f3d50419 MERGE 2021-09-16 20:07:41 -07: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
Ryan Fleury 593da9bf99 parse node set in header 2021-09-16 20:56:19 -06:00
Ryan Fleury c04b7dd04d eliminate ParseTagList and redundant parse result fields 2021-09-16 20:40:06 -06:00
Ryan Fleury 0288b025f8 inline parse tag list call; fix uninitialized memory in string copy 2021-09-16 20:36:13 -06: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 9cc8f80abe [expr parser] Column information on parse errors. 2021-09-12 14:05:39 +02:00
Miguel Lechon 4f4fb0f7f9 [expr parser] Move acceleration into parse context. 2021-09-12 11:12:26 +02:00
Miguel Lechon aad96bf978 [expr parser] Detect premature end of expression. 2021-09-11 11:21:34 +02:00
Allen Webster 39b30d9276 [examples] finish first draft commentary in parse_check.c 2021-09-10 15:26:21 -07:00
Allen Webster 6dd7acb1a2 iterating on debug dump and reconstruction API details 2021-09-10 14:46:41 -07:00
Allen Webster a3e8c90b67 [examples] filling in notes in the parse_check.c example; upgrading the datadesk_like_template a bit 2021-09-10 14:34:23 -07:00
Allen Webster aeaa8b1154 wrap the prev/next comment members for future upgrades 2021-09-10 13:20:26 -07:00