acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "blocks": [
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Escaped caret \\^not superscript^ and real ",
          "location": [
            {
              "line": 1,
              "col": 1
            },
            {
              "line": 1,
              "col": 42
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "superscript",
          "form": "unconstrained",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "superscript",
              "location": [
                {
                  "line": 1,
                  "col": 44
                },
                {
                  "line": 1,
                  "col": 54
                }
              ]
            }
          ],
          "location": [
            {
              "line": 1,
              "col": 43
            },
            {
              "line": 1,
              "col": 55
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " text.",
          "location": [
            {
              "line": 1,
              "col": 56
            },
            {
              "line": 1,
              "col": 61
            }
          ]
        }
      ],
      "location": [
        {
          "line": 1,
          "col": 1
        },
        {
          "line": 1,
          "col": 61
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Escaped tilde \\~not subscript~ and real ",
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 40
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "subscript",
          "form": "unconstrained",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "subscript",
              "location": [
                {
                  "line": 3,
                  "col": 42
                },
                {
                  "line": 3,
                  "col": 50
                }
              ]
            }
          ],
          "location": [
            {
              "line": 3,
              "col": 41
            },
            {
              "line": 3,
              "col": 51
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " text.",
          "location": [
            {
              "line": 3,
              "col": 52
            },
            {
              "line": 3,
              "col": 57
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 3,
          "col": 57
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Mixed: H",
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 8
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "~2~",
          "location": [
            {
              "line": 5,
              "col": 9
            },
            {
              "line": 5,
              "col": 13
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "O and E=mc",
          "location": [
            {
              "line": 5,
              "col": 13
            },
            {
              "line": 5,
              "col": 22
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "^2^",
          "location": [
            {
              "line": 5,
              "col": 23
            },
            {
              "line": 5,
              "col": 27
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " vs H",
          "location": [
            {
              "line": 5,
              "col": 27
            },
            {
              "line": 5,
              "col": 31
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "subscript",
          "form": "unconstrained",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "2",
              "location": [
                {
                  "line": 5,
                  "col": 33
                },
                {
                  "line": 5,
                  "col": 33
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 32
            },
            {
              "line": 5,
              "col": 34
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "O and E=mc",
          "location": [
            {
              "line": 5,
              "col": 35
            },
            {
              "line": 5,
              "col": 44
            }
          ]
        },
        {
          "name": "span",
          "type": "inline",
          "variant": "superscript",
          "form": "unconstrained",
          "inlines": [
            {
              "name": "text",
              "type": "string",
              "value": "2",
              "location": [
                {
                  "line": 5,
                  "col": 46
                },
                {
                  "line": 5,
                  "col": 46
                }
              ]
            }
          ],
          "location": [
            {
              "line": 5,
              "col": 45
            },
            {
              "line": 5,
              "col": 47
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": ".",
          "location": [
            {
              "line": 5,
              "col": 48
            },
            {
              "line": 5,
              "col": 48
            }
          ]
        }
      ],
      "location": [
        {
          "line": 5,
          "col": 1
        },
        {
          "line": 5,
          "col": 48
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 5,
      "col": 48
    }
  ]
}