acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "文档标题",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 6
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 6
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "section",
      "type": "block",
      "title": [
        {
          "name": "text",
          "type": "string",
          "value": "第一节",
          "location": [
            {
              "line": 3,
              "col": 4
            },
            {
              "line": 3,
              "col": 6
            }
          ]
        }
      ],
      "level": 1,
      "blocks": [
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "这是一个包含中文字符的段落。",
              "location": [
                {
                  "line": 5,
                  "col": 1
                },
                {
                  "line": 5,
                  "col": 14
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 14
            }
          ]
        },
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "Some ",
              "location": [
                {
                  "line": 7,
                  "col": 1
                },
                {
                  "line": 7,
                  "col": 5
                }
              ]
            },
            {
              "name": "span",
              "type": "inline",
              "variant": "strong",
              "form": "constrained",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "加粗文本",
                  "location": [
                    {
                      "line": 7,
                      "col": 7
                    },
                    {
                      "line": 7,
                      "col": 10
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 7,
                  "col": 6
                },
                {
                  "line": 7,
                  "col": 11
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": " and ",
              "location": [
                {
                  "line": 7,
                  "col": 12
                },
                {
                  "line": 7,
                  "col": 16
                }
              ]
            },
            {
              "name": "span",
              "type": "inline",
              "variant": "emphasis",
              "form": "constrained",
              "inlines": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "斜体文本",
                  "location": [
                    {
                      "line": 7,
                      "col": 18
                    },
                    {
                      "line": 7,
                      "col": 21
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 7,
                  "col": 17
                },
                {
                  "line": 7,
                  "col": 22
                }
              ]
            },
            {
              "name": "text",
              "type": "string",
              "value": ".",
              "location": [
                {
                  "line": 7,
                  "col": 23
                },
                {
                  "line": 7,
                  "col": 23
                }
              ]
            }
          ],
          "location": [
            {
              "line": 7,
              "col": 1
            },
            {
              "line": 7,
              "col": 23
            }
          ]
        },
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "日本語のテキスト: こんにちは世界!",
              "location": [
                {
                  "line": 9,
                  "col": 1
                },
                {
                  "line": 9,
                  "col": 18
                }
              ]
            }
          ],
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 9,
              "col": 18
            }
          ]
        },
        {
          "name": "paragraph",
          "type": "block",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "한국어 텍스트: 안녕하세요!",
              "location": [
                {
                  "line": 11,
                  "col": 1
                },
                {
                  "line": 11,
                  "col": 15
                }
              ]
            }
          ],
          "location": [
            {
              "line": 11,
              "col": 1
            },
            {
              "line": 11,
              "col": 15
            }
          ]
        },
        {
          "name": "section",
          "type": "block",
          "title": [
            {
              "name": "text",
              "type": "string",
              "value": "第二节",
              "location": [
                {
                  "line": 13,
                  "col": 5
                },
                {
                  "line": 13,
                  "col": 7
                }
              ]
            }
          ],
          "level": 2,
          "blocks": [
            {
              "name": "section",
              "type": "block",
              "title": [
                {
                  "name": "text",
                  "type": "string",
                  "value": "深层嵌套",
                  "location": [
                    {
                      "line": 15,
                      "col": 6
                    },
                    {
                      "line": 15,
                      "col": 9
                    }
                  ]
                }
              ],
              "level": 3,
              "blocks": [
                {
                  "name": "paragraph",
                  "type": "block",
                  "inlines": [
                    {
                      "name": "text",
                      "type": "string",
                      "value": "Content in a deeply nested section with 多字节 characters.",
                      "location": [
                        {
                          "line": 17,
                          "col": 1
                        },
                        {
                          "line": 17,
                          "col": 55
                        }
                      ]
                    }
                  ],
                  "location": [
                    {
                      "line": 17,
                      "col": 1
                    },
                    {
                      "line": 17,
                      "col": 55
                    }
                  ]
                }
              ],
              "location": [
                {
                  "line": 15,
                  "col": 1
                },
                {
                  "line": 17,
                  "col": 55
                }
              ]
            }
          ],
          "location": [
            {
              "line": 13,
              "col": 1
            },
            {
              "line": 17,
              "col": 55
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 17,
          "col": 55
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 17,
      "col": 55
    }
  ]
}