Split Engine into eval folder.

This commit is contained in:
Stephen Chung
2022-01-07 11:43:47 +08:00
parent ad0f7b7ce9
commit a267ac5e54
22 changed files with 3413 additions and 3299 deletions

26
src/README.md Normal file
View File

@@ -0,0 +1,26 @@
Source Structure
================
| 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-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`](https://crates.io/crates/serde) |
| `bin` | Pre-built CLI binaries (e.g. `rhai-run`, `rhai-repl`) |