rumoca/
lib.rs

1pub mod compiler;
2pub mod dae;
3pub mod fmt;
4pub mod ir;
5pub mod lint;
6
7// LSP module is available for WASM or when lsp feature is enabled
8#[cfg(any(target_arch = "wasm32", feature = "lsp"))]
9pub mod lsp;
10pub mod modelica_grammar;
11#[cfg(feature = "python")]
12mod python;
13#[cfg(target_arch = "wasm32")]
14pub mod wasm;
15
16// Re-export generated parser modules for convenience
17pub use modelica_grammar::generated::modelica_grammar_trait;
18pub use modelica_grammar::generated::modelica_parser;
19
20// Re-export the main API types for convenience
21pub use compiler::{
22    CompilationResult, Compiler, extract_parse_error, parse_file_cached, parse_file_cached_result,
23    parse_source, parse_source_simple,
24};
25pub use fmt::{CONFIG_FILE_NAMES, FormatOptions, format_modelica};
26pub use lint::{
27    LINT_CONFIG_FILE_NAMES, LintConfig, LintLevel, LintMessage, LintResult, lint_file, lint_str,
28};