Module rustla::parser::types_and_aliases [−][src]
A submodule that contains Parser-related type aliases.
Copyright © 2020 Santtu Söderholm
Enums
IndentationMatch | A enumeration of the different ways a node’s child indentation might interact with the indentation of the parent. |
IndentedBlockResult | A enumeration of the different ways the function |
InlineParsingResult | An enumeration of the different ways an inline parsing function might succeed or fail. |
LineAdvance | An enum returned by the transition methods to tell the parser whether it needs to advance its line cursor after the method execution or not. |
PushOrPop | An enum for manipulating the machine stack. Transition methods should return this information
with a possible next state, so the parser knows how to proceed. The |
TextBlockResult | A enumeration of the different ways the function |
TransitionResult | An enumeration of the different results, including errors, that a transition function might have. |
Type Definitions
InlineParsingMethod | A type alias for a function describing an inline transition. Returns a node a length of the match, so that the inline parser could determine how many characters to eat off the start of the source string. |
InlineTransition | A type alias for a tuple |
Transition | A type alias for a tuple |
TransitionMethod | A function pointer type alias for a State transition method.
|
UncompiledTransition | A type alias for a transition |