acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
{
  "name": "document",
  "type": "block",
  "header": {
    "title": [
      {
        "name": "text",
        "type": "string",
        "value": "Index Terms Test",
        "location": [
          {
            "line": 1,
            "col": 3
          },
          {
            "line": 1,
            "col": 18
          }
        ]
      }
    ],
    "location": [
      {
        "line": 1,
        "col": 1
      },
      {
        "line": 1,
        "col": 18
      }
    ]
  },
  "attributes": {},
  "blocks": [
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "This is about ",
          "location": [
            {
              "line": 3,
              "col": 1
            },
            {
              "line": 3,
              "col": 14
            }
          ]
        },
        {
          "name": "indexterm",
          "type": "inline",
          "term": "Arthur",
          "visible": true,
          "location": [
            {
              "line": 3,
              "col": 15
            },
            {
              "line": 3,
              "col": 24
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": " the king.",
          "location": [
            {
              "line": 3,
              "col": 25
            },
            {
              "line": 3,
              "col": 34
            }
          ]
        }
      ],
      "location": [
        {
          "line": 3,
          "col": 1
        },
        {
          "line": 3,
          "col": 34
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "indexterm",
          "type": "inline",
          "term": "Sword",
          "secondary": "Broadsword",
          "visible": false,
          "location": [
            {
              "line": 5,
              "col": 1
            },
            {
              "line": 5,
              "col": 23
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": "A concealed term for swords.",
          "location": [
            {
              "line": 5,
              "col": 24
            },
            {
              "line": 5,
              "col": 51
            }
          ]
        }
      ],
      "location": [
        {
          "line": 5,
          "col": 1
        },
        {
          "line": 5,
          "col": 51
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Using macro style: ",
          "location": [
            {
              "line": 7,
              "col": 1
            },
            {
              "line": 7,
              "col": 19
            }
          ]
        },
        {
          "name": "indexterm",
          "type": "inline",
          "term": "Excalibur",
          "visible": true,
          "location": [
            {
              "line": 7,
              "col": 20
            },
            {
              "line": 7,
              "col": 41
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": ".",
          "location": [
            {
              "line": 7,
              "col": 42
            },
            {
              "line": 7,
              "col": 42
            }
          ]
        }
      ],
      "location": [
        {
          "line": 7,
          "col": 1
        },
        {
          "line": 7,
          "col": 42
        }
      ]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "And concealed macro: ",
          "location": [
            {
              "line": 9,
              "col": 1
            },
            {
              "line": 9,
              "col": 21
            }
          ]
        },
        {
          "name": "indexterm",
          "type": "inline",
          "term": "Knights",
          "secondary": "Round Table",
          "visible": false,
          "location": [
            {
              "line": 9,
              "col": 22
            },
            {
              "line": 9,
              "col": 53
            }
          ]
        },
        {
          "name": "text",
          "type": "string",
          "value": ".",
          "location": [
            {
              "line": 9,
              "col": 54
            },
            {
              "line": 9,
              "col": 54
            }
          ]
        }
      ],
      "location": [
        {
          "line": 9,
          "col": 1
        },
        {
          "line": 9,
          "col": 54
        }
      ]
    }
  ],
  "location": [
    {
      "line": 1,
      "col": 1
    },
    {
      "line": 9,
      "col": 54
    }
  ]
}