ling/polyglot/mod.rs
1// src/polyglot/mod.rs
2// Polyglot support is WIP.
3// Provide minimal stubs so the compiler front-end can build.
4
5#[derive(Clone, Debug)]
6pub struct ScriptDetector;
7
8impl ScriptDetector {
9 pub fn detect(_source: &str) -> Script {
10 Script::Unknown
11 }
12}
13
14#[derive(Clone, Debug)]
15pub enum Script {
16 Unknown,
17}
18
19pub fn normalize_source(source: &str) -> String {
20 source.to_string()
21}
22