灵符lingfu

ling-macro

↓ 0 downloads

Procedural macros for the Ling language ecosystem

lingfu install ling-macro
LicenseApache-2.0 OR MIT
AuthorsLing Lin, Sanny Lin
READMECode / FilesVersionsDependency GraphDependentsSecurityBuildsSettings

Code / Files (5)

src/lib.rs
//! Ling procedural macros

use proc_macro::TokenStream;
use syn::{parse_macro_input, DeriveInput};

#[proc_macro_derive(LingType)]
pub fn derive_ling_type(input: TokenStream) -> TokenStream {
    let _input = parse_macro_input!(input as DeriveInput);
    // Generate Ling type metadata
    TokenStream::new()
}

← Back to index