Skip to main content

Crate nifty_interp

Crate nifty_interp 

Source
Expand description

Runs a checked Nifty program directly, driving the native UI through the runtime’s engine. This is what nf run and nf dev use; nf build will compile the same program to machine code that drives the same engine instead.

Modules§

app 🔒
Runs a checked program’s windows on the runtime’s engine, with the interpreter giving every dynamic part its value.
live 🔒
An app whose program can be replaced while it runs, which is how nf dev reloads.
logic 🔒
The interpreter as the runtime engine’s Logic: it evaluates the checked code each template points at, and starts the downloads and file dialogs that code asks for.
lower 🔒
Turns a checked program’s windows and views into the runtime’s templates, whose dynamic parts point back into the checked code for the interpreter to evaluate.
machine 🔒
Evaluates checked expressions and statements against the app’s state.
value 🔒
Runtime values. Lists and structs share their contents until one copy is changed, so passing them around is cheap while keeping value semantics.

Structs§

App
A running app: its state, its windows, and what each widget shows.
LiveApp
RuntimeError
A failure while the app runs, such as dividing by zero, pointing at the code responsible.

Enums§

Value

Functions§

run
Shows the program’s windows on backend and runs until the app quits. Errors during events go to on_error.

Type Aliases§

ErrorHandler