rhai/src
2022-02-08 21:28:15 +08:00
..
api Use .. for (_). 2022-02-08 09:46:14 +08:00
ast Use turbofish notation. 2022-02-08 21:28:15 +08:00
bin Unwrap error when caught. 2022-02-08 19:02:40 +08:00
eval Use turbofish notation. 2022-02-08 21:28:15 +08:00
func Use turbofish notation. 2022-02-08 21:28:15 +08:00
module Simplify using .. 2022-02-08 09:02:15 +08:00
packages Simplify using .. 2022-02-08 09:02:15 +08:00
serde Simplify using .. 2022-02-08 09:02:15 +08:00
types Unwrap error when caught. 2022-02-08 19:02:40 +08:00
engine.rs Simplify using .. 2022-02-08 09:02:15 +08:00
lib.rs Refactor OptimizationLevel. 2022-02-07 21:03:39 +08:00
optimizer.rs Use .. for (_). 2022-02-08 09:46:14 +08:00
parser.rs Use turbofish notation. 2022-02-08 21:28:15 +08:00
README.md Remove unsound casting functions 2022-02-05 16:29:05 -08:00
reify.rs Improve reify syntax. 2022-02-08 09:25:53 +08:00
tests.rs Support call stack and FunctionExit for native functions. 2022-02-02 14:47:35 +08:00
tokenizer.rs Use .. for (_). 2022-02-08 09:46:14 +08:00

Source Structure

Root Sources

Source file Description
lib.rs Crate root
engine.rs The scripting engine, defines the Engine type
tokenizer.rs Script tokenizer/lexer
parser.rs Script parser
optimizer.rs Script optimizer
reify.rs Utilities for making generic types concrete
tests.rs Unit tests (not integration tests, which are in the rhai/tests sub-directory)

Sub-Directories

Sub-directory Description
types Common data types (e.g. Dynamic, errors)
api Public API for the scripting engine
ast AST definition
module Support for modules
packages Pre-defined packages
func Support for function calls
eval Evaluation engine
serde Support for serde
bin Pre-built CLI binaries (e.g. rhai-run, rhai-repl)