Skip to main content

nichlink/registry_core/syntax/
syntax.rs

1//! Parser shared by build-time checks and live authoring.
2//! 构建期检查与实时编辑共用的注册面解析器。
3//!
4//! Two grammars live here: the registration-face parser in [`face`] and the
5//! host-entry declarations in [`entries`]. The module tree mirrors that split.
6//! 这里有两种语法:位于 [`face`] 的注册面解析器,以及位于 [`entries`] 的宿主入口声明。
7//! 模块树与这一分工一致。
8
9#[path = "face.rs"]
10pub mod face;
11pub use face::*;
12#[path = "entries.rs"]
13pub mod entries;
14pub use entries::*;
15#[path = "nesting.rs"]
16pub(crate) mod nesting;
17#[path = "reference_scan.rs"]
18pub(crate) mod reference_scan;
19
20// The module stays crate-private; the one function other crates need is
21// re-exported so the workspace keeps a single nesting measurement.
22// 模块保持 crate 私有;其他 crate 需要的那一个函数在此重导出,使工作区只保留一份嵌套度量。
23pub use nesting::guard_nesting;
24
25#[cfg(test)]
26#[path = "deep_input_tests.rs"]
27mod deep_input_tests;