Commit Graph

18 Commits

Author SHA1 Message Date
Miguel Lechon c38bc6de30 [namespaces] Build namespaces as lists of reference nodes. 2021-03-29 17:51:36 +02:00
Miguel Lechon 20f85761c7 [map] Expose PtrMap on md.h. Remove NodeTable defines. 2021-03-22 15:45:36 +01:00
Miguel Lechon eef82b0554 Pipe error location through error->node. 2021-03-18 17:40:06 +01:00
Miguel Lechon 6026c3639d Remove MD_Map aliases. 2021-03-16 19:15:48 +01:00
Miguel Lechon 7645afbcc1 [grammar test] Store production depth on MD_PtrMap. 2021-03-16 11:20:18 +01:00
Miguel Lechon fed011fc52 Switch to map_proposal. 2021-03-16 11:11:13 +01:00
Miguel Lechon eb0cf0c9bf MD_Node->at fix.
node->at now points to the first relevant character in the source .md file.
For namespaces and tags that is the first character of the identifier
(not the '#'/'@' symbols).
For labels it's the first character in node->whole_string if non-empty.
For unlabeled sets it's the opening '(', '[' or '{' character.
2021-03-16 09:19:02 +01:00
Miguel Lechon e4fbe7a81d More parsing errors.
Invalid hash directives.
Invalid tag token.
Reserved characters.
2021-03-13 10:01:08 +01:00
Miguel Lechon 701b77e118 Parsing errors for unbalanced sets and text literals. 2021-03-10 18:32:29 +01:00
Miguel Lechon 35ef98a5fd Sync build scripts. 2021-03-09 18:12:34 +01:00
Miguel Lechon 2d22fc17d5 [grammar test] Remove malformed tagging. Give up on comments. 2021-03-08 20:02:27 +01:00
Miguel Lechon 61f9149a2b [grammar test] before_comment. 2021-03-04 15:21:55 +01:00
Miguel Lechon 71d5235f81 [grammar test] Fairly complete test grammars. 2021-02-22 14:55:39 +01:00
Miguel Lechon a2066a0c58 [grammar test] Limit the depth of generated tests. 2021-02-21 19:12:30 +01:00
Miguel Lechon c5d88b890b [grammar test] Extra set delimiters and separators.
Delimiters: Square brackets and parentheses.
Separators: Commas and semicolons
2021-02-17 12:05:56 +01:00
Miguel Lechon 35c802deae [grammar test] Sort tests by increading complexity. 2021-02-17 08:13:24 +01:00
Miguel Lechon 50d6f7cd64 [grammar test] Labeled nodes and tag parameters. 2021-02-16 19:35:24 +01:00
Miguel Lechon e2920e565b Partial MD grammar test. 2021-02-13 19:57:59 +01:00