[][src]Crate rnix

Re-exports

pub use self::parser::AST;
pub use self::value::StrPart;
pub use self::value::Value as NixValue;

Modules

parser

The parser: turns a series of tokens into an AST

tokenizer

The tokenizer: turns a string into tokens, such as numbers, strings, and keywords

types

Provides a type system for the AST, in some sense

value

The types: Such as strings or integers

Macros

T

Structs

SmolStr

A SmolStr is a string type that has the following properties:

SyntaxElementChildren
SyntaxNodeChildren
TextRange

A range in the text, represented as a pair of TextUnits.

TextUnit

An offset into text. Offset is represented as u32 storing number of utf8-bytes, but most of the clients should treat it like opaque measure.

Enums

NixLanguage
NodeOrToken
SyntaxKind
TokenAtOffset

There might be zero, one or two leaves at a given offset.

WalkEvent

WalkEvent describes tree walking process.

Functions

parse

A convenience function for first tokenizing and then parsing given input

Type Definitions

SyntaxElement
SyntaxNode
SyntaxToken