1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! # syster-base
//!
//! Core library for SysML v2 and KerML parsing, AST, and semantic analysis.
//!
//! ## Module Structure (dependency order)
//!
//! ```text
//! ide → IDE features (completion, hover, goto-def)
//! ↓
//! hir → Semantic model with Salsa queries
//! ↓
//! ast → Typed syntax tree wrappers
//! ↓
//! parser → Lexer + parser (pest for now, hand-written later)
//! ↓
//! base → Primitives (FileId, Span, Name interning)
//! ```
//!
//! ## Legacy Modules (being replaced)
//!
//! - `core` - old primitives → moving to `base`
//! - `syntax` - old AST → moving to `ast`
//! - `semantic` - old analysis → moving to `hir`
//! - `project` - workspace management → moving to `hir`
// ============================================================================
// NEW ARCHITECTURE (Phase 1)
// ============================================================================
/// Foundation types: FileId, Span, Name interning
/// High-level IR: Salsa-based semantic model
/// IDE features: completion, hover, goto-definition, find-references
// Placeholder modules (to be implemented)
// pub mod parser2; // New hand-written parser
// pub mod ast2; // New typed syntax wrappers
// ============================================================================
// LEGACY MODULES (to be deprecated)
// ============================================================================
// Re-export commonly needed items
pub use keywords;
// Re-export new foundation types
pub use ;