feat: basic definitions

This commit is contained in:
tamasfe
2022-07-25 19:01:06 +02:00
parent 602efc7042
commit b7b9ff29e4
9 changed files with 6109 additions and 11 deletions

View File

@@ -82,6 +82,8 @@ mod reify;
mod tests;
mod tokenizer;
mod types;
#[cfg(feature = "metadata")]
mod definitions;
/// Error encountered when parsing a script.
type PERR = ParseErrorType;
@@ -258,6 +260,9 @@ pub mod serde;
#[cfg(not(feature = "no_optimize"))]
pub use optimizer::OptimizationLevel;
#[cfg(feature = "metadata")]
pub use definitions::Definitions;
/// Placeholder for the optimization level.
#[cfg(feature = "no_optimize")]
pub type OptimizationLevel = ();