Crate mediawiki_parser [−] [src]
Modules
| transformations |
Functions and types for source tree transformations. |
Structs
| Comment |
Comments in the input document. |
| Document |
The document root. |
| Error |
Indicates an erroneous part of the document tree. |
| ExternalReference |
External reference, usually hyperlinks. |
| Formatted |
A formatting wrapper, usually around text. |
| Gallery |
Gallery of images (or interal references in general). |
| Heading |
Headings make a hierarchical document structure. Headings of higher depths have other headings as parents. |
| HtmlTag |
Html tags not encoding formatting elements. |
| InternalReference |
A reference to internal data, such as embedded files or other articles. |
| List |
List of items. The |
| ListItem |
List item of a certain |
| Paragraph |
Paragraphs are separated by newlines in the input document. |
| ParseError |
The parser error with source code context. |
| Position |
Represents a position in the source document. |
| SourceLine |
Position of a source line of code. |
| Span |
Holds position information (start and end) for one element |
| Table |
A mediawiki table. |
| TableCell |
A single table cell. |
| TableRow |
A table row. |
| TagAttribute |
Represents a pair of html tag attribute and value. |
| Template |
A mediawiki template. |
| TemplateArgument |
Argument of a mediawiki template. Empty name indicate anonymous arguments. |
| Text |
Simple text. |
| TransformationError |
Error structure for syntax tree transformations. |
Enums
| Element |
Element types used in the abstract syntax tree (AST). |
| ListItemKind |
Types of markup a section of text may have. |
| MWError |
Generic error type for high-level errors of this libaray. |
| MarkupType |
Types of markup a section of text may have. |
Traits
| Traversion |
Implements a traversion over a tree of |
Functions
| parse |
Parse the input document to generate a document tree. After parsing, some transformations are applied to the result. |