Module syntax::ext::tt::quoted[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Re-exports

use ast;
use attr;
use ext::tt::macro_parser;
use feature_gate;
use feature_gate::emit_feature_err;
use feature_gate::Features;
use feature_gate::GateIssue;
use parse::token;
use parse::ParseSess;
use print::pprust;
use symbol::keywords;
use syntax_pos::BytePos;
use syntax_pos::Span;
use syntax_pos::DUMMY_SP;
use tokenstream;
use std::iter::Peekable;
use rustc_data_structures::sync::Lrc;

Structs

Delimited [
Experimental
]

Contains the sub-token-trees of a "delimited" token tree, such as the contents of (. Note that the delimiter itself might be NoDelim.

SequenceRepetition [
Experimental
]

Enums

KleeneOp [
Experimental
]

A Kleene-style repetition operator for token sequences.

TokenTree [
Experimental
]

Similar to tokenstream::TokenTree, except that $i, $i:ident, and $(...) are "first-class" token trees. Useful for parsing macros.

Functions

kleene_op [
Experimental
]

Takes a token and returns Some(KleeneOp) if the token is + * or ?. Otherwise, return None.

parse [
Experimental
]

Takes a tokenstream::TokenStream and returns a Vec<self::TokenTree>. Specifically, this takes a generic TokenStream, such as is used in the rest of the compiler, and returns a collection of TokenTree for use in parsing a macro.

parse_kleene_op [
Experimental
]

Parse the next token tree of the input looking for a KleeneOp. Returns

parse_sep_and_kleene_op [
Experimental
]

Attempt to parse a single Kleene star, possibly with a separator.

parse_tree [
Experimental
]

Takes a tokenstream::TokenTree and returns a self::TokenTree. Specifically, this takes a generic TokenTree, such as is used in the rest of the compiler, and returns a TokenTree for use in parsing a macro.