acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Document with TOC attribute substitution",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 42
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 3,
        "col": 13
      }
    ]
  },
  "attributes": {
    "toc": "macro",
    "toclevels": "3"
  },
  "blocks": [
    {
      "name": "toc",
      "type": "block",
      "metadata": {
        "attributes": {
          "levels": "3"
        }
      },
      "location": [
        {
          "line": 5,
          "col": 1
        },
        {
          "line": 5,
          "col": 26
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Section 1",
          "location": [
            {
              "line": 7,
              "col": 4
            },
            {
              "line": 7,
              "col": 12
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "section",
          "type": "block",
          "title": [
            {
              "name": "text",
              "type": "string",
              "value": "Subsection 1.1",
              "location": [
                {
                  "line": 8,
                  "col": 5
                },
                {
                  "line": 8,
                  "col": 18
                }
              ]
            }
          ],
          "level": 2,
          "blocks": [
            {
              "name": "section",
              "type": "block",
              "title": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "Sub-subsection 1.1.1",
                  "location": [
                    {
                      "line": 9,
                      "col": 6
                    },
                    {
                      "line": 9,
                      "col": 25
                    }
                  ]
                }
              ],
              "level": 3,
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 9,
                  "col": 25
                }
              ]
            }
          ],
          "location": [
            {
              "line": 8,
              "col": 1
            },
            {
              "line": 9,
              "col": 25
            }
          ]
        }
      ],
      "location": [
        {
          "line": 7,
          "col": 1
        },
        {
          "line": 9,
          "col": 25
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Section 2",
          "location": [
            {
              "line": 10,
              "col": 4
            },
            {
              "line": 10,
              "col": 12
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "section",
          "type": "block",
          "title": [
            {
              "name": "text",
              "type": "string",
              "value": "Subsection 2.1",
              "location": [
                {
                  "line": 11,
                  "col": 5
                },
                {
                  "line": 11,
                  "col": 18
                }
              ]
            }
          ],
          "level": 2,
          "location": [
            {
              "line": 11,
              "col": 1
            },
            {
              "line": 11,
              "col": 18
            }
          ]
        }
      ],
      "location": [
        {
          "line": 10,
          "col": 1
        },
        {
          "line": 11,
          "col": 18
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 11,
      "col": 18
    }
  ]
}