Skip to main content

muffy_validation_macro/
lib.rs

1//! Macros for document validation.
2
3use proc_macro::TokenStream;
4use quote::quote;
5
6/// Generates HTML validation functions.
7#[proc_macro]
8pub fn html(_input: TokenStream) -> TokenStream {
9    // TODO Generate validation functions of `validate_element` for HTML against the
10    // `Element` type in the `muffy-document` crate based on the HTML
11    // specification in the Relax NG Compact syntax at the `schema` directory
12    // using the parser in the `muffy-rnc` crate.
13
14    quote! {}.into()
15}