#![forbid(unsafe_code)]
extern crate self as yomi_core;
mod analysis;
mod assign_ids;
mod backend;
mod codes;
mod compile;
mod decls;
mod diag;
mod explore;
mod format;
mod ident;
mod ir;
mod package;
mod pool;
mod program;
mod registry;
mod repl;
mod schema_file;
mod suggest;
mod syntax;
mod texts;
mod type_expand;
mod value;
mod vm;
pub use analysis::{Analysis, Reference, Span, Symbol, SymbolKind, analyze, is_name_char};
pub use assign_ids::{
AUTO_ID_LEN, IdRng, Insertion, MissingId, apply as apply_insertions, plan as plan_ids,
plan_program as plan_ids_program,
};
pub use codes::{CodeGroup, CodeInfo, ErrorCodeInfo, all_codes, core_command_error_codes};
pub use compile::{
CompileOptions, LocalType, compile, compile_modules, compile_modules_with_options,
compile_modules_with_warnings, compile_with_warnings, infer_local_types,
};
pub use decls::{DeclError, DeclErrorKind, MAX_DECLS_BYTES, MAX_JSON_DEPTH};
pub use diag::{DiagArg, DiagCode, Diagnostic, Severity};
pub use explore::{
DEFAULT_MAX_STATES, ErrorPath, ExploreConfig, ExploreReport, ExploreStep, StuckPath, TestPath,
explore,
};
pub use format::{FormatError, format_source};
pub use package::{
CommandError, CommandErrorKind, Ctx, EffectFn, IntoReturn, MigrateError, Package, PackageReg,
QueryFn, decode_slice, encode_slice,
};
pub use program::{Program, StopKind};
pub use registry::{
CommandDecl, CommandId, CommandKind, FromArgs, FromValue, IntoValue, Kind, PackageDecl,
PackageItem, Registry, RegistryError, StopDecl, Str, Sugar, VarDecl, VarHandle, YomiArgs,
YomiDecl, YomiMap, YomiType,
};
pub use repl::{
Applied, ApplyError, ApplyInvalid, Completeness, Declared, Def, InputKind, Name, Repl,
ReplYield, Submitted, completeness,
};
pub use schema_file::{ExtractError, extract_schema, frozen_schema, migrate_template};
pub use syntax::keywords::{
CONTEXTUAL_KEYWORDS, ContextualKeyword, ContextualPosition, KEYWORDS, Keyword, KeywordKind,
is_reserved, keyword,
};
pub use texts::{TextError, TextErrorKind, TextIssue, TextIssueKind, TextTable};
pub use value::{
EnumValue, FnValue, Identity, ListData, MAX_TYPE_DEPTH, MapData, MapEntries, StrValue,
StructValue, Ty, TypeDecl, TypeKind, Value, VariantDecl, find_type,
};
pub use vm::{
CueRef, DEFAULT_HISTORY_LIMIT, DEFAULT_SEED, DebugHook, DebugYield, Debugger, FrameInfo,
HookAction, Input, InterruptHandle, LineEvent, LoadError, LoadErrorKind, LoadPolicy,
LoadReport, PauseHandle, PendingStop, PersistentReport, ReloadError, ResolvedBy, Rng, Snapshot,
SnapshotLog, StepMode, StopRecord, UnitKind, Variable, Vm, VmConfig, VmError, VmErrorKind,
Yield, pending_stop,
};
pub use yomi_derive::YomiType;
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
#[cfg(test)]
mod tests;