acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "blocks": [
    {
      "name": "table",
      "type": "block",
      "form": "delimited",
      "delimiter": "|===",
      "content": {
        "header": {
          "columns": [
            {
              "content": [
                {
                  "name": "paragraph",
                  "type": "block",
                  "inlines": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "Default",
                      "location": [
                        {
                          "line": 2,
                          "col": 3
                        },
                        {
                          "line": 2,
                          "col": 9
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 2,
                      "col": 3
                    },
                    {
                      "line": 2,
                      "col": 9
                    }
                  ]
                }
              ]
            },
            {
              "content": [
                {
                  "name": "paragraph",
                  "type": "block",
                  "inlines": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "Centered",
                      "location": [
                        {
                          "line": 2,
                          "col": 13
                        },
                        {
                          "line": 2,
                          "col": 20
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 2,
                      "col": 13
                    },
                    {
                      "line": 2,
                      "col": 20
                    }
                  ]
                }
              ]
            },
            {
              "content": [
                {
                  "name": "paragraph",
                  "type": "block",
                  "inlines": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "Right",
                      "location": [
                        {
                          "line": 2,
                          "col": 24
                        },
                        {
                          "line": 2,
                          "col": 28
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 2,
                      "col": 24
                    },
                    {
                      "line": 2,
                      "col": 28
                    }
                  ]
                }
              ]
            }
          ]
        },
        "footer": null,
        "rows": [
          {
            "columns": [
              {
                "content": [
                  {
                    "name": "paragraph",
                    "type": "block",
                    "inlines": [
                      {
                        "name": "text",
                        "type": "string",
                        "value": "Center",
                        "location": [
                          {
                            "line": 4,
                            "col": 4
                          },
                          {
                            "line": 4,
                            "col": 9
                          }
                        ]
                      }
                    ],
                    "location": [
                      {
                        "line": 4,
                        "col": 4
                      },
                      {
                        "line": 4,
                        "col": 9
                      }
                    ]
                  }
                ],
                "halign": "center"
              },
              {
                "content": [
                  {
                    "name": "paragraph",
                    "type": "block",
                    "inlines": [
                      {
                        "name": "text",
                        "type": "string",
                        "value": "Default",
                        "location": [
                          {
                            "line": 4,
                            "col": 13
                          },
                          {
                            "line": 4,
                            "col": 19
                          }
                        ]
                      }
                    ],
                    "location": [
                      {
                        "line": 4,
                        "col": 13
                      },
                      {
                        "line": 4,
                        "col": 19
                      }
                    ]
                  }
                ]
              },
              {
                "content": [
                  {
                    "name": "paragraph",
                    "type": "block",
                    "inlines": [
                      {
                        "name": "text",
                        "type": "string",
                        "value": "> Right",
                        "location": [
                          {
                            "line": 4,
                            "col": 23
                          },
                          {
                            "line": 4,
                            "col": 29
                          }
                        ]
                      }
                    ],
                    "location": [
                      {
                        "line": 4,
                        "col": 23
                      },
                      {
                        "line": 4,
                        "col": 29
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "columns": [
              {
                "content": [
                  {
                    "name": "paragraph",
                    "type": "block",
                    "inlines": [
                      {
                        "name": "text",
                        "type": "string",
                        "value": "Default",
                        "location": [
                          {
                            "line": 5,
                            "col": 3
                          },
                          {
                            "line": 5,
                            "col": 9
                          }
                        ]
                      }
                    ],
                    "location": [
                      {
                        "line": 5,
                        "col": 3
                      },
                      {
                        "line": 5,
                        "col": 9
                      }
                    ]
                  }
                ]
              },
              {
                "content": [
                  {
                    "name": "paragraph",
                    "type": "block",
                    "inlines": [
                      {
                        "name": "text",
                        "type": "string",
                        "value": ".^ Middle",
                        "location": [
                          {
                            "line": 5,
                            "col": 13
                          },
                          {
                            "line": 5,
                            "col": 21
                          }
                        ]
                      }
                    ],
                    "location": [
                      {
                        "line": 5,
                        "col": 13
                      },
                      {
                        "line": 5,
                        "col": 21
                      }
                    ]
                  }
                ]
              },
              {
                "content": [
                  {
                    "name": "paragraph",
                    "type": "block",
                    "inlines": [
                      {
                        "name": "text",
                        "type": "string",
                        "value": ".> Bottom",
                        "location": [
                          {
                            "line": 5,
                            "col": 25
                          },
                          {
                            "line": 5,
                            "col": 33
                          }
                        ]
                      }
                    ],
                    "location": [
                      {
                        "line": 5,
                        "col": 25
                      },
                      {
                        "line": 5,
                        "col": 33
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "location": [
          {
            "line": 1,
            "col": 1
          },
          {
            "line": 6,
            "col": 4
          }
        ]
      },
      "location": [
        {
          "line": 1,
          "col": 1
        },
        {
          "line": 6,
          "col": 4
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 6,
      "col": 4
    }
  ]
}