Module prelude

Module prelude 

Source

Re-exports§

pub use crate::utils::*;

Structs§

ParseState
A struct representing the current parsing state.
Parser
ParserParsers
既存のParserを使用するParsers実装

Enums§

CommittedStatus
A structure representing the commit status of the parser.
パーサのコミット状態を表す構造体。
ParseError
The enum type representing the parsing error.
ParseResult
The enum type representing the parse result.

Traits§

CacheParser
CollectParser
ConversionParser
DiscardParser
Element
A Element.
LoggingParser
OffsetParser
OperatorParser
ParserFilter
ParserFunctor
ParserMonad
ParserPure
ParserRunner
Parsers
パーサー関数を提供するトレイト
PeekParser
RepeatParser
SkipParser

Functions§

begin
elm
Returns a Parser that parses the specified element.
elm_alpha
Returns a Parser that parses alphabets (‘A’..=‘Z’, ‘a’..=‘z’).
elm_alpha_digit
Returns a Parser that parses alphabets and digits (‘0’..=‘9’, ‘A’..=‘Z’, ‘a’..=‘z’).
elm_alpha_digit_ref
Returns a Parser that parses alphabets and digits (‘0’..=‘9’, ‘A’..=‘Z’, ‘a’..=‘z’).(for reference)
elm_alpha_ref
Returns a Parser that parses alphabets (‘A’..=‘Z’, ‘a’..=‘z’).(for reference)
elm_any
Returns a Parser that parses an any element.
elm_any_ref
Returns a Parser that parses an any element.(for reference)
elm_digit
Returns a Parser that parses digits (‘0’..=‘9’).
elm_digit_1_9
Returns a Parser that parses digits (‘1’..=‘9’).
elm_digit_1_9_ref
Returns a Parser that parses digits (‘1’..=‘9’).(for reference)
数字(‘1’..=‘9’)を解析するParserを返します。(参照版)
elm_digit_ref
Returns a Parser that parses digits (‘0’..=‘9’).(for reference)
elm_from_until
Returns a Parser that parses the elements in the specified range.
elm_from_until_ref
Returns a Parser that parses the elements in the specified range. (for reference)
elm_hex_digit
Returns a Parser that parses hex digits (‘0’..=‘9’, ‘A’..=‘F’, ‘a’..=‘f’).
elm_hex_digit_ref
Returns a Parser that parses hex digits (‘0’..=‘9’, ‘A’..=‘F’, ‘a’..=‘f’).(for reference)
elm_in
Returns a Parser that parses the elements in the specified range.
elm_in_ref
Returns a Parser that parses the elements in the specified range. (for reference)
elm_multi_space
Returns a Parser that parses spaces containing newlines (’ ’, ‘\t’, ‘\n’, ‘\r’).
elm_multi_space_ref
Returns a Parser that parses spaces containing newlines (’ ’, ‘\t’, ‘\n’, ‘\r’). (for reference)
elm_oct_digit
Returns a Parser that parses oct digits (‘0’..=‘8’).
elm_oct_digit_ref
Returns a Parser that parses oct digits (‘0’..=‘8’).(for reference)
elm_of
Returns a Parser that parses the elements in the specified set.
elm_pred
Returns a Parser that parses the elements that satisfy the specified closure conditions.
elm_pred_ref
Returns a Parser that parses the elements that satisfy the specified closure conditions.(for reference)
elm_ref
Returns a Parser that parses the specified element.(for reference)
elm_ref_of
Returns a Parser that parses the elements in the specified set. (for reference)
elm_space
Returns a Parser that parses the space (’ ’, ‘\t’).
elm_space_ref
Returns a Parser that parses the space (’ ’, ‘\t’). (for reference)
empty
Returns a Parser that does nothing. It is an alias for unit().
end
Returns a Parser representing the termination.
failed
Returns a Parser that represents the result of the failed parsing.
failed_lazy
Returns a Parser that represents the result of the failed parsing.
failed_with_commit
Returns a Parser that returns and commits the failed parsing result.
failed_with_uncommit
Returns a Parser that returns failed parsing results and does not commit.
lazy
Returns a Parser that lazily evaluates the specified Parser.
none_of
Returns a Parser that parses elements that do not contain elements of the specified set.
none_ref_of
Returns a Parser that parses elements that do not contain elements of the specified set.(for reference)
regex
Returns a Parser that parses a string that match a regular expression.
seq
Returns a Parser that parses a sequence of elements.
skip
Returns a Parser that skips the specified number of elements.
successful
Returns a Parser representing the successful parsing result.
successful_lazy
Returns a Parser representing the successful parsing result.
surround
Return a Parser that skips the previous and following Parsers.
tag
Returns a Parser that parses a string.
tag_no_case
Returns a Parser that parses a string. However, it is not case-sensitive.
take
Returns a Parser that returns an element of the specified length.
take_till0
Returns a Parser that returns a sequence up to either the end element or the element that matches the condition.
take_till1
Returns a Parser that returns a sequence up to either the end element or the element that matches the condition.
take_while0
Returns a Parser that returns elements, while the result of the closure is true.
take_while1
Returns a Parser that returns elements, while the result of the closure is true.
take_while_n_m
Returns a Parser that returns elements, while the result of the closure is true.
unit
Returns a Parser that does nothing.