Module esparse::skip[][src]

Skip syntactic constructs without retaining their structure.

In general, skipping functions are overly permissive, i.e., they may accept invalid constructs, but they will never reject valid ones. They will also never skip too far.

Structs

Error

The error type for skipping functions.

Enums

ErrorKind

The specific kind of error that occurred.

Prec

Binding strength for skip::expr.

Functions

balanced

Skip a balanced tree of delimiters.

balanced_braces

Skip a balanced tree of braces, i.e., { and }.

balanced_brackets

Skip a balanced tree of brackets, i.e., [ and ].

balanced_parens

Skip a balanced tree of parentheses, i.e., ( and ).

balanced_templates

Skip a balanced tree of template literals.

expr

Skips an expression from lex with the given binding strength (precedence).

Type Definitions

Result

The result type for skipping functions.