Module rnix::parser[][src]

The parser: turns a series of tokens into an AST

Modules

nometa

Alternative AST representation that discards all metadata, such as comments and span information. Useful for unit testing, where entering span information can get very tedious. You can convert an AST with metadata to this type using .into()

Structs

AST

An AST node, with metadata

Parser

The parser. You may want to use the parse convenience function from this module instead.

PatEntry

An entry in a pattern

Enums

ASTType

An AST node type

Interpol

An interpolation part

LambdaArg

A lambda argument type

ParseError

An error that occured during parsing

SetEntry

An entry in a set

Functions

parse

Convenience function for turning an iterator of tokens into an AST