rhai/src
2022-10-14 12:23:04 +08:00
..
api Refactor. 2022-10-10 16:46:35 +08:00
ast Refine inlining. 2022-09-28 12:06:22 +08:00
bin Refactor. 2022-10-10 16:46:35 +08:00
eval Streamline global state. 2022-10-14 12:23:04 +08:00
func Streamline global state. 2022-10-14 12:23:04 +08:00
module Refactor. 2022-10-10 16:46:35 +08:00
packages Refactor. 2022-10-10 16:46:35 +08:00
serde Refactor. 2022-10-10 16:46:35 +08:00
types Add parse_json. 2022-09-29 22:46:59 +08:00
config.rs Do not use stable hashing with all-zero seed. 2022-09-27 16:39:19 +08:00
engine.rs Fix build. 2022-10-05 15:15:42 +08:00
lib.rs Remove stable_hash feature and use environment variable. 2022-09-27 13:23:47 +08:00
optimizer.rs Refactor. 2022-10-10 16:46:35 +08:00
parser.rs Allow global functions in non-aliased imports. 2022-10-14 12:14:28 +08:00
README.md Remove unsound casting functions 2022-02-05 16:29:05 -08:00
reify.rs Shut up clippy. 2022-08-27 16:26:41 +08:00
tests.rs Use tokens to speed up function name lookup. 2022-09-25 23:03:18 +08:00
tokenizer.rs Refine inlining. 2022-09-28 12:06:22 +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)