26 Commits

Author SHA1 Message Date
ed 68fadce5c6 starting to review mdesk.h/c 2025-02-08 11:10:23 -05:00
ryanfleury ecfe3314b6 robustify against /W4 on MSVC 2022-02-17 14:14:50 -07: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 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
Miguel Lechon b2c901d60f [expr parser] Brace/bracket unary op required for set leaves. 2021-09-09 12:48:04 +02:00
Miguel Lechon c0a50bfe27 Discard and warn against conflicting expression operators. 2021-09-09 12:21:03 +02:00
Miguel Lechon c6c790e50d expression parser; first pass. 2021-09-07 18:16:57 +02:00