Skip to main contentCrate nickel_lang_parser
Source - ast
- The Nickel AST, as ingested by the (future) bytecode compiler.
- combine
- Module for the Combine trait
- environment
- An environment for storing variables with scopes.
- error
- files
- This module provides
Files, a cheaply-clonable, persistent, codespan-compatible collection of files. - grammar
- identifier
- Define the type of an identifier.
- lexer
- The lexer, transforming an input string to a stream of tokens.
- metrics
- This module only contains macros wrapping those of the
metrics crate, if
the metrics feature is enabled. - position
- Define types of positions and position spans.
- traverse
- Traversal of trees of objects.
- typ
- Nickel static types.
- utils
- Various helpers and companion code for the parser are put here to keep the grammar definition
uncluttered.
- app
- Multi-ary application for types implementing
Into<Ast>. - fun
- Multi argument function for types implementing
Into<Ident> (for the identifiers), and
Into<NickelValue> for the body. - impl_display_from_bytecode_pretty
- Generate an implementation of
fmt::Display for types that implement Pretty. - increment
- measure_runtime
- primop_app
- Multi-ary application for types implementing
Into<NickelValue>. - sample
- ExtendedTerm
- Either an expression or a toplevel let declaration.
- ErrorTolerantParser
- General interface of the various specialized Nickel parsers.
- FullyErrorTolerantParser
- Additional capabilities for parsers that return
Asts, offering an error-tolerant interface
that is actually infallible.