rhai/src
2022-01-13 22:05:07 +08:00
..
api Use target_family for wasm. 2022-01-12 08:12:28 +08:00
ast Support converting literal FnPtr. 2022-01-08 14:00:41 +08:00
bin Reduce usage of Default::default() to make it easier to refactor. 2021-11-07 18:12:37 +08:00
eval Fix unchecked build. 2022-01-13 21:08:36 +08:00
func Use target_family for wasm. 2022-01-12 08:12:28 +08:00
module Fix build. 2022-01-13 21:01:56 +08:00
packages Fix Array::pad infinite loop. 2022-01-13 22:05:07 +08:00
serde Extract metadata into separate type. 2022-01-13 19:07:56 +08:00
types Use target_family for wasm. 2022-01-12 08:12:28 +08:00
engine.rs Use target_family for wasm. 2022-01-12 08:12:28 +08:00
lib.rs Extract index calculataion into functions. 2022-01-13 18:13:27 +08:00
optimizer.rs Split Engine into eval folder. 2022-01-07 11:43:47 +08:00
parser.rs Use target_family for wasm. 2022-01-12 08:12:28 +08:00
README.md Fix builds. 2022-01-07 12:19:01 +08:00
tests.rs Fix test. 2022-01-12 11:01:03 +08:00
tokenizer.rs Extract index calculataion into functions. 2022-01-13 18:13:27 +08:00
unsafe.rs Streamline hot code. 2022-01-03 23:11:06 +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
unsafe.rs unsafe functions
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)