Expand description
This module contains the State type and the different transition functions corresponding to each state
in its submodules.
Copyright © 2020 Santtu Söderholm
Modules§
- aplus
- A submodule that contains transition methods specific to creating A+ nodes.
- aplus_
questionnaire - A submodule dedicated to parsing functions of the
State::AplusQuestionnairestate. - block_
quote - Contains the transition function for parsing attributions inside block quotes.
- body
- This module contains the transition functions related to
State::Body. - bullet_
list - A submodule that contains
State::BulletListrelated transition functions. - common
- A submodule for transition functions common to all states, such as blank line detection.
- definition_
list - A submodule with transition functions related to parsing definition list items. Every other transition function is redefined to focus on tree parent and pop from the parser state stack.
- enumerated_
list - A submodule for
State::EnumeratedListrelated transition functions. - field_
list - A submodule that contains transition functions responsible for creating FieldListItem nodes.
- inline
- A submodule related to parsing blocks of text for inline elements.
- literal_
block - A submodule that contains the functions related to parsing literal blocks of text.
- transitions
- This Module contains lists of transition tuples related to different states and common patterns as &str constants.
- unknown_
transitions - A submodule whose only function’s purpose is to replace other transition methods and make the document tree focus on its parent and make the parser pop from its state stack. This is useful in making the transitions from each state complete, as in defined for each possible input, where it is needed.
Structs§
- COMPILED_
INLINE_ TRANSITIONS - Inline text has different parsing requirements than (nested)
Bodyelements as they do not form blocks of text, making detecting by source line impractical. - TRANSITION_
MAP - A static map of transititions for each
Stateof theParser.
Enums§
- State
- An enum of states.
The variants are used as keys to the static
TRANSITION_MAP, which stores vectors of transitions as values.