[−][src]Crate ftml
A library to parse Wikidot text and produce an abstract syntax tree (AST).
This library aims to be a replacement of Wikidot's Text_Wiki parser, which is presently a loose group of regular expressions (with irregular Perl extensions). The aim is to provide an AST while also maintaining the flexibility and lax parsing that Wikidot permits.
Modules
data | |
prelude | |
tree |
Structs
ExtractedToken | |
ParseError | |
ParseResult | |
Tokenization |
Enums
ParseErrorKind | |
Token |
Functions
parse | Parse through the given tokens and produce an AST. |
preprocess | Run the preprocessor on the given wikitext, which is modified in-place. |
tokenize | Take an input string and produce a list of tokens for consumption by the parser. |