rhai/src
2022-12-21 13:54:54 +08:00
..
api Add Engine::compact_script. 2022-12-21 13:54:54 +08:00
ast Change to struct variants for better flexibility. 2022-12-14 12:07:33 +08:00
bin Capture global module docs in JSON. 2022-12-01 23:35:26 +08:00
config Use SusLock to hold pre-calculated indexer hashes. 2022-11-25 11:49:00 +08:00
eval Remove Dynamic::NULL, use .as_deref_mut() for this_ptr. 2022-12-20 16:52:55 +08:00
func Remove Dynamic::NULL, use .as_deref_mut() for this_ptr. 2022-12-20 16:52:55 +08:00
module Add Engine::compact_script. 2022-12-21 13:54:54 +08:00
packages Fix up find/find_map. 2022-12-20 22:27:29 +08:00
serde Add Engine::compact_script. 2022-12-21 13:54:54 +08:00
types Remove Dynamic::NULL, use .as_deref_mut() for this_ptr. 2022-12-20 16:52:55 +08:00
engine.rs Fix builds. 2022-12-03 12:08:35 +08:00
lib.rs Move encapsulated environment out of ScriptFnDef. 2022-12-12 16:06:24 +08:00
optimizer.rs Remove Dynamic::NULL, use .as_deref_mut() for this_ptr. 2022-12-20 16:52:55 +08:00
parser.rs Remove Dynamic::NULL, use .as_deref_mut() for this_ptr. 2022-12-20 16:52:55 +08:00
README.md Remove unsound casting functions 2022-02-05 16:29:05 -08:00
reify.rs Improve reify! syntax. 2022-12-09 16:41:01 +08:00
restore.rs Move restore up one level. 2022-12-11 21:50:47 +08:00
tests.rs Allow exporting function pointers from modules. 2022-12-12 18:31:02 +08:00
tokenizer.rs Add Engine::compact_script. 2022-12-21 13:54:54 +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)