Crate macros_core
source ·Macros
- Create a parser based on a set of patterns.
Structs
- A stream of tokens.
- A parse error encountered while parsing a
MacroStream
. - A region of source code, along with macro expansion information.
Enums
- The delimiter of a group of tokens
- The kind of literal.
- The error type for this crate. Can be either a
Parse(ParseError)
from this crate or aUser(Box<dyn Error + Send + Sync>)
user error. - A match of a
Pattern
. - The specific kind of parse error encountered.
- A pattern to match against a
MacroStream
in a parser from theparser!
macro. - Whether a
Punct
is followed immediately by anotherPunct
or followed by another token or whitespace. - A token in a macro.
Traits
- Parse a
MacroStream
into aSelf
. - The trait for the output of a parser created by the
parser!
macro. - The representation of an item as tokens to recreate it.
Functions
- A shortcut for
proc_macro2::Span::call_site()
.
Type Definitions
- Type alias for the result of parsing to a
MacroStream
.