acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Nested Lists in Description Lists",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 35
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 35
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "dlist",
      "type": "block",
      "items": [
        {
          "term": [
            {
              "name": "text",
              "type": "string",
              "value": "Item 1",
              "location": [
                {
                  "line": 3,
                  "col": 1
                },
                {
                  "line": 3,
                  "col": 6
                }
              ]
            }
          ],
          "delimiter": "::",
          "principal_text": [
            {
              "name": "text",
              "type": "string",
              "value": "Description",
              "location": [
                {
                  "line": 3,
                  "col": 10
                },
                {
                  "line": 3,
                  "col": 20
                }
              ]
            }
          ],
          "description": [
            {
              "name": "list",
              "type": "block",
              "variant": "unordered",
              "marker": "-",
              "items": [
                {
                  "name": "listItem",
                  "type": "block",
                  "marker": "-",
                  "principal": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "Level 1 item",
                      "location": [
                        {
                          "line": 5,
                          "col": 3
                        },
                        {
                          "line": 5,
                          "col": 14
                        }
                      ]
                    }
                  ],
                  "blocks": [
                    {
                      "name": "list",
                      "type": "block",
                      "variant": "unordered",
                      "marker": "**",
                      "items": [
                        {
                          "name": "listItem",
                          "type": "block",
                          "marker": "**",
                          "principal": [
                            {
                              "name": "text",
                              "type": "string",
                              "value": "Level 2 item",
                              "location": [
                                {
                                  "line": 6,
                                  "col": 4
                                },
                                {
                                  "line": 6,
                                  "col": 15
                                }
                              ]
                            }
                          ],
                          "location": [
                            {
                              "line": 6,
                              "col": 1
                            },
                            {
                              "line": 6,
                              "col": 15
                            }
                          ]
                        },
                        {
                          "name": "listItem",
                          "type": "block",
                          "marker": "**",
                          "principal": [
                            {
                              "name": "text",
                              "type": "string",
                              "value": "Another level 2",
                              "location": [
                                {
                                  "line": 7,
                                  "col": 4
                                },
                                {
                                  "line": 7,
                                  "col": 18
                                }
                              ]
                            }
                          ],
                          "location": [
                            {
                              "line": 7,
                              "col": 1
                            },
                            {
                              "line": 7,
                              "col": 18
                            }
                          ]
                        }
                      ],
                      "location": [
                        {
                          "line": 6,
                          "col": 1
                        },
                        {
                          "line": 7,
                          "col": 18
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 5,
                      "col": 1
                    },
                    {
                      "line": 7,
                      "col": 18
                    }
                  ]
                },
                {
                  "name": "listItem",
                  "type": "block",
                  "marker": "-",
                  "principal": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "Back to level 1",
                      "location": [
                        {
                          "line": 8,
                          "col": 3
                        },
                        {
                          "line": 8,
                          "col": 17
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 8,
                      "col": 1
                    },
                    {
                      "line": 8,
                      "col": 17
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 5,
                  "col": 1
                },
                {
                  "line": 8,
                  "col": 17
                }
              ]
            }
          ],
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 8,
              "col": 17
            }
          ]
        },
        {
          "term": [
            {
              "name": "text",
              "type": "string",
              "value": "Item 2",
              "location": [
                {
                  "line": 10,
                  "col": 1
                },
                {
                  "line": 10,
                  "col": 6
                }
              ]
            }
          ],
          "delimiter": "::",
          "principal_text": [
            {
              "name": "text",
              "type": "string",
              "value": "Another description",
              "location": [
                {
                  "line": 10,
                  "col": 10
                },
                {
                  "line": 10,
                  "col": 28
                }
              ]
            }
          ],
          "description": [],
          "location": [
            {
              "line": 10,
              "col": 1
            },
            {
              "line": 10,
              "col": 29
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 10,
          "col": 29
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 10,
      "col": 28
    }
  ]
}