Add info into README's.

This commit is contained in:
Stephen Chung 2023-04-12 12:09:14 +08:00
parent 0206f776db
commit 094eb5878a
2 changed files with 20 additions and 16 deletions

View File

@ -11,21 +11,23 @@ Root Sources
| `tokenizer.rs` | Script tokenizer/lexer | | `tokenizer.rs` | Script tokenizer/lexer |
| `parser.rs` | Script parser | | `parser.rs` | Script parser |
| `optimizer.rs` | Script optimizer | | `optimizer.rs` | Script optimizer |
| `defer.rs` | Utilities for deferred clean-up of resources |
| `reify.rs` | Utilities for making generic types concrete | | `reify.rs` | Utilities for making generic types concrete |
| `tests.rs` | Unit tests (not integration tests, which are in the `rhai/tests` sub-directory) | | `tests.rs` | Unit tests (not integration tests, which are in the main `tests` sub-directory) |
Sub-Directories Sub-Directories
--------------- ---------------
| Sub-directory | Description | | Sub-directory | Description |
| ------------- | ----------------------------------------------------- | | ------------- | ------------------------------------------------------------------ |
| `types` | Common data types (e.g. `Dynamic`, errors) | | `config` | Configuration |
| `api` | Public API for the scripting engine | | `types` | Common data types (e.g. `Dynamic`, errors) |
| `ast` | AST definition | | `api` | Public API for the scripting engine |
| `module` | Support for modules | | `ast` | AST definition |
| `packages` | Pre-defined packages | | `module` | Support for modules |
| `func` | Support for function calls | | `packages` | Pre-defined packages |
| `eval` | Evaluation engine | | `func` | Registering and calling functions (native Rust and script-defined) |
| `serde` | Support for [`serde`](https://crates.io/crates/serde) | | `eval` | AST evaluation |
| `bin` | Pre-built CLI binaries (e.g. `rhai-run`, `rhai-repl`) | | `serde` | Support for [`serde`](https://crates.io/crates/serde) and metadata |
| `bin` | Pre-built CLI binaries |

View File

@ -1,7 +1,9 @@
Build Tools Build Tools
=========== ===========
| File | Description | This directory contains input files for various build tools required for building Rhai.
| -------------- | ------------------------------------------- |
| `keywords.txt` | Input file for GNU gperf for the tokenizer. | | File | Build tool | Description |
| `reserved.txt` | Input file for GNU gperf for the tokenizer. | | -------------- | :---------: | ------------------------------------------------------------------ |
| `keywords.txt` | GNU `gperf` | Input file for the tokenizer – keywords recognition. |
| `reserved.txt` | GNU `gperf` | Input file for the tokenizer – reserved symbols recognition. |