Commit Graph

116 Commits

Author SHA1 Message Date
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
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
Allen Webster eef0ff2577 better lexer testing in sanity_tests 2021-09-02 19:49:09 -07:00
Allen Webster 213c20fd93 update lexer to new symbol parsing rule 2021-09-02 19:34:28 -07:00
Allen Webster a2766a2e0c clean up old samples; mark md_c_helpers with an error; remove c helper tests 2021-09-01 19:01:27 -07:00
Allen Webster 4452663046 make print helpers optional 2021-08-27 14:55:32 -07:00
Allen Webster 500c310bcc setup new build script 2021-08-20 23:45:00 -07:00
ryanfleury d213f0362f string generation feature options + implementations + tests 2021-08-18 01:46:55 -06:00
Allen Webster 4ab0adf9cc overridable scratch; remove the tedious explicit thread init 2021-08-13 11:19:03 -07:00
Allen Webster fcda88e1cd reduce arena overrides; tidy up organization of default control macros; eliminate arena casts by directly relying on MD_IMPL_Arena in header 2021-08-13 10:03:28 -07:00
Allen Webster 37484ea0a6 thread context scratch system; converge on transition idiom in sample code 2021-07-21 16:03:39 -07:00
Allen Webster c6df111fb1 adding arena (p8) - done 2021-07-20 22:32:30 -07:00
Allen Webster bf60e1a8f7 adding arena (p7) 2021-07-20 22:23:58 -07:00
Allen Webster a54f8b893f adding arena (p6) 2021-07-20 22:17:03 -07:00
Allen Webster 2953d97c53 adding arena (p5) 2021-07-20 22:04:37 -07:00
Allen Webster 863834ad6a adding arena (p3) 2021-07-20 21:56:25 -07:00
Allen Webster ba20ee9b14 adding arena (p2) 2021-07-20 21:48:44 -07:00
Allen Webster 5e39bc8f2e adding arena (p1) 2021-07-20 21:30:22 -07:00
ryanfleury 0eee7e5a6c use mdesk extension instead of md 2021-07-04 16:35:42 -06:00
miguel.lechon 90073dc802 Test node text flags independently. 2021-07-04 12:11:49 +02:00
miguel.lechon 6e6512b09d Remove outdated grammar test. 2021-07-04 11:53:00 +02:00
ryanfleury 72a6924a69 get toy language building again, get tests passing again 2021-07-03 13:41:22 -06:00