acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "blocks": [
    {
      "name": "table",
      "type": "block",
      "form": "delimited",
      "delimiter": "|===",
      "metadata": {
        "attributes": {
          "cols": "1a,1a"
        }
      },
      "content": {
        "header": null,
        "footer": null,
        "rows": [
          {
            "columns": [
              {
                "content": [
                  {
                    "name": "table",
                    "type": "block",
                    "form": "delimited",
                    "delimiter": "!===",
                    "content": {
                      "header": null,
                      "footer": null,
                      "rows": [
                        {
                          "columns": [
                            {
                              "content": [
                                {
                                  "name": "paragraph",
                                  "type": "block",
                                  "inlines": [
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "value": "First",
                                      "location": [
                                        {
                                          "line": 5,
                                          "col": 2
                                        },
                                        {
                                          "line": 5,
                                          "col": 6
                                        }
                                      ]
                                    }
                                  ],
                                  "location": [
                                    {
                                      "line": 5,
                                      "col": 2
                                    },
                                    {
                                      "line": 5,
                                      "col": 6
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "content": [
                                {
                                  "name": "paragraph",
                                  "type": "block",
                                  "inlines": [
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "value": "Nested",
                                      "location": [
                                        {
                                          "line": 5,
                                          "col": 10
                                        },
                                        {
                                          "line": 5,
                                          "col": 15
                                        }
                                      ]
                                    }
                                  ],
                                  "location": [
                                    {
                                      "line": 5,
                                      "col": 10
                                    },
                                    {
                                      "line": 5,
                                      "col": 15
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "location": [
                        {
                          "line": 3,
                          "col": 2
                        },
                        {
                          "line": 6,
                          "col": 3
                        }
                      ]
                    },
                    "location": [
                      {
                        "line": 3,
                        "col": 2
                      },
                      {
                        "line": 6,
                        "col": 3
                      }
                    ]
                  }
                ],
                "style": "asciidoc"
              },
              {
                "content": [
                  {
                    "name": "table",
                    "type": "block",
                    "form": "delimited",
                    "delimiter": "!===",
                    "content": {
                      "header": null,
                      "footer": null,
                      "rows": [
                        {
                          "columns": [
                            {
                              "content": [
                                {
                                  "name": "paragraph",
                                  "type": "block",
                                  "inlines": [
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "value": "Second",
                                      "location": [
                                        {
                                          "line": 10,
                                          "col": 2
                                        },
                                        {
                                          "line": 10,
                                          "col": 7
                                        }
                                      ]
                                    }
                                  ],
                                  "location": [
                                    {
                                      "line": 10,
                                      "col": 2
                                    },
                                    {
                                      "line": 10,
                                      "col": 7
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "content": [
                                {
                                  "name": "paragraph",
                                  "type": "block",
                                  "inlines": [
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "value": "Nested",
                                      "location": [
                                        {
                                          "line": 10,
                                          "col": 11
                                        },
                                        {
                                          "line": 10,
                                          "col": 16
                                        }
                                      ]
                                    }
                                  ],
                                  "location": [
                                    {
                                      "line": 10,
                                      "col": 11
                                    },
                                    {
                                      "line": 10,
                                      "col": 16
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "location": [
                        {
                          "line": 8,
                          "col": 2
                        },
                        {
                          "line": 11,
                          "col": 3
                        }
                      ]
                    },
                    "location": [
                      {
                        "line": 8,
                        "col": 2
                      },
                      {
                        "line": 11,
                        "col": 3
                      }
                    ]
                  }
                ],
                "style": "asciidoc"
              }
            ]
          }
        ],
        "columns": [
          {
            "style": "asciidoc"
          },
          {
            "style": "asciidoc"
          }
        ],
        "location": [
          {
            "line": 2,
            "col": 1
          },
          {
            "line": 12,
            "col": 4
          }
        ]
      },
      "location": [
        {
          "line": 1,
          "col": 1
        },
        {
          "line": 12,
          "col": 4
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 12,
      "col": 4
    }
  ]
}