Crate bbscope

source ·

Structs

The main bbcode system. You create this to parse bbcode! Inexpensive clones, since fields are all reference counted.
Definition for a block level matcher. Should always be readonly, it is just a definition. Not necessary a scoped element, could define eating garbage, passing normal text through, etc. It’s all up to the ‘match_type’
Information about a scoped tag with open and close elements. This gives you the power to craft many kinds of markup, not just bbcode, and have it understand scope

Enums

This defines how scopes and whole blocks of text move into the output. Basically: is your matcher using scope or not? If using scope, you need to define an open and close MatchInfo. If not, just use the [Simple] option

Type Definitions

The type for your emit closure which will take the open tag capture, body, and close tag capture and output whatever you want. used with