acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Main Document",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 15
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 15
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "First paragraph in main.",
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 24
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 3,
          "col": 24
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Included Section",
          "location": [
            {
              "line": 5,
              "col": 3
            },
            {
              "line": 5,
              "col": 18
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Content from the included file.",
              "location": [
                {
                  "line": 7,
                  "col": 1
                },
                {
                  "line": 7,
                  "col": 31
                }
              ]
            }
          ],
          "location": [
            {
              "line": 7,
              "col": 1
            },
            {
              "line": 7,
              "col": 31
            }
          ]
        },
        {
          "name": "section",
          "type": "block",
          "title": [
            {
              "name": "text",
              "type": "string",
              "value": "Nested Section",
              "location": [
                {
                  "line": 9,
                  "col": 4
                },
                {
                  "line": 9,
                  "col": 17
                }
              ]
            }
          ],
          "level": 2,
          "blocks": [
            {
              "name": "paragraph",
              "type": "block",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "More included content.",
                  "location": [
                    {
                      "line": 11,
                      "col": 1
                    },
                    {
                      "line": 11,
                      "col": 22
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 11,
                  "col": 1
                },
                {
                  "line": 11,
                  "col": 22
                }
              ]
            },
            {
              "name": "paragraph",
              "type": "block",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "Last paragraph in main.",
                  "location": [
                    {
                      "line": 13,
                      "col": 1
                    },
                    {
                      "line": 13,
                      "col": 23
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 13,
                  "col": 1
                },
                {
                  "line": 13,
                  "col": 23
                }
              ]
            }
          ],
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 13,
              "col": 23
            }
          ]
        }
      ],
      "location": [
        {
          "line": 5,
          "col": 1
        },
        {
          "line": 13,
          "col": 23
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 13,
      "col": 23
    }
  ]
}