rhai/src
2023-04-10 18:47:53 +08:00
..
api Add is_def_fn with 3 parameters. 2023-03-30 16:43:15 +08:00
ast Streamline data types. 2023-04-10 18:47:53 +08:00
bin Update rustyline. 2023-02-20 10:06:26 +08:00
config Use SusLock to hold pre-calculated indexer hashes. 2022-11-25 11:49:00 +08:00
eval Streamline data types. 2023-04-10 18:47:53 +08:00
func Fix builds. 2023-03-30 17:41:21 +08:00
module Streamline data types. 2023-04-10 18:47:53 +08:00
packages Remove indirection. 2023-03-23 13:37:10 +08:00
serde Remove indirection. 2023-03-23 13:37:10 +08:00
types Fix bug in optimize_ast skipping Stmt::FnCall. 2023-04-10 13:11:24 +08:00
defer.rs Simplify match. 2023-04-05 23:15:55 +08:00
engine.rs Remove indirection. 2023-03-23 13:37:10 +08:00
lib.rs Rename auto_restore! to defer! 2023-03-25 21:13:34 +08:00
optimizer.rs Streamline data types. 2023-04-10 18:47:53 +08:00
parser.rs Streamline data types. 2023-04-10 18:47:53 +08:00
README.md Move tools out of src. 2023-03-17 07:09:56 +08:00
reify.rs Improve reify! syntax. 2022-12-09 16:41:01 +08:00
tests.rs Fine tune Engine size. 2023-03-07 16:52:37 +08:00
tokenizer.rs Fix builds. 2023-03-30 17:41:21 +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)