Module rune::parse[][src]

Expand description

Parsing utilities for Rune.

Structs

An opaque identifier that is associated with AST types.

A non-zero Id which definitely contains a value. We keep this distinct from Id to allow for safely using this as a key in a hashmap, preventing us from inadvertently storing an empty identifier.

An error raised during parsing.

Parser for the rune language.

Construct used to peek a parser.

A resolve context.

An error during resolving.

Enums

Something that describes an expectation or actuality.

Error when parsing.

The kind of a resolve error.

Traits

The parse trait, implemented by items that can be parsed.

Implemented by tokens that can be peeked for.

A type that can be resolved to an internal value based on a source.

Functions

Parse the given input as the given type that implements Parse. The specified source_id will be used when referencing any parsed elements. shebang indicates if the parser should try to parse a shebang or not.