acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Document Title",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 16
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 16
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Section 1",
          "location": [
            {
              "line": 3,
              "col": 4
            },
            {
              "line": 3,
              "col": 12
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "This is the content of section 1.",
              "location": [
                {
                  "line": 5,
                  "col": 1
                },
                {
                  "line": 5,
                  "col": 33
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 33
            }
          ]
        },
        {
          "name": "section",
          "type": "block",
          "title": [
            {
              "name": "text",
              "type": "string",
              "value": "Section 1.1",
              "location": [
                {
                  "line": 7,
                  "col": 5
                },
                {
                  "line": 7,
                  "col": 15
                }
              ]
            }
          ],
          "level": 2,
          "blocks": [
            {
              "name": "paragraph",
              "type": "block",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "This is the content of section 1.1.",
                  "location": [
                    {
                      "line": 9,
                      "col": 1
                    },
                    {
                      "line": 9,
                      "col": 35
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 9,
                  "col": 35
                }
              ]
            },
            {
              "name": "section",
              "type": "block",
              "title": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "Section 1.1.1",
                  "location": [
                    {
                      "line": 11,
                      "col": 6
                    },
                    {
                      "line": 11,
                      "col": 18
                    }
                  ]
                }
              ],
              "level": 3,
              "blocks": [
                {
                  "name": "paragraph",
                  "type": "block",
                  "inlines": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "This is the content of section 1.1.1.",
                      "location": [
                        {
                          "line": 13,
                          "col": 1
                        },
                        {
                          "line": 13,
                          "col": 37
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 13,
                      "col": 1
                    },
                    {
                      "line": 13,
                      "col": 37
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 11,
                  "col": 1
                },
                {
                  "line": 13,
                  "col": 37
                }
              ]
            }
          ],
          "location": [
            {
              "line": 7,
              "col": 1
            },
            {
              "line": 13,
              "col": 37
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 13,
          "col": 37
        }
      ]
    },
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "Section 2",
          "location": [
            {
              "line": 15,
              "col": 4
            },
            {
              "line": 15,
              "col": 12
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "This is the content of section 2.",
              "location": [
                {
                  "line": 17,
                  "col": 1
                },
                {
                  "line": 17,
                  "col": 33
                }
              ]
            }
          ],
          "location": [
            {
              "line": 17,
              "col": 1
            },
            {
              "line": 17,
              "col": 33
            }
          ]
        }
      ],
      "location": [
        {
          "line": 15,
          "col": 1
        },
        {
          "line": 17,
          "col": 33
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 17,
      "col": 33
    }
  ]
}