asterisk 0.1.0

Universal language-agnostic AST walking and accurate call stack generation with tree-sitter
Documentation
use phf::phf_map;

/// A static map of supported file extensions and their corresponding language names.
pub static SUPPORTED_EXTENSIONS: phf::Map<&'static str, &'static str> = phf_map! {
    "rs" => "Rust",
    "py" => "Python",
    // Add more supported extensions and languages
};

/// Returns a vector of supported file extensions.
///
/// # Returns
///
/// A vector of strings representing the supported file extensions.
pub fn get_supported_extensions() -> Vec<String> {
    SUPPORTED_EXTENSIONS
        .keys()
        .map(|&s| s.to_string())
        .collect()
}