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 devreloads. - 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
- Runtime
Error - A failure while the app runs, such as dividing by zero, pointing at the code responsible.
Enums§
Functions§
- run
- Shows the program’s windows on
backendand runs until the app quits. Errors during events go toon_error.