Crate macros_core

Source

Macros§

lazy_static
parser
Create a parser based on a set of patterns.

Structs§

MacroStream
A stream of tokens.
ParseError
A parse error encountered while parsing a MacroStream.
Span
A region of source code, along with macro expansion information.

Enums§

Delimiter
The delimiter of a group of tokens
LiteralKind
The kind of literal.
MacrosError
The error type for this crate. Can be either a Parse(ParseError) from this crate or a User(Box<dyn Error + Send + Sync>) user error.
Match
A match of a Pattern.
ParseErrorKind
The specific kind of parse error encountered.
Pattern
A pattern to match against a MacroStream in a parser from the parser! macro.
Spacing
Whether a Punct is followed immediately by another Punct or followed by another token or whitespace.
Token
A token in a macro.

Traits§

Parse
Parse a MacroStream into a Self.
ParserOutput
The trait for the output of a parser created by the parser! macro.
Repr
The representation of an item as tokens to recreate it.

Functions§

call_site
A shortcut for proc_macro2::Span::call_site().

Type Aliases§

ParseResult
Type alias for the result of parsing to a MacroStream.