trigraph

Crates.iotrigraph
lib.rstrigraph
version0.1.3
sourcesrc
created_at2022-07-19 01:39:38.931942
updated_at2022-07-19 09:44:58.188023
descriptionA trigraph macro for your rust code
homepage
repository
max_upload_size
id627993
size7,335
L. Kramer (8051Enthusiast)

documentation

README

trigraph

Use trigraphs in rust:

use trigraph::trigraph;

trigraph! {
    const HELLO_WORLD: &??(u8??) = &??(0x48u8, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21??);
    fn main() ??<
        println!("??<??> nyaa??-", String::from_utf8_lossy(HELLO_WORLD));
    ??>
}

Limitations

This is mostly untested. Does not work with ??' since it interacts badly with the tokenizer because of the '. Does not work with differing delimiters like { with ??> or ??( with ].

Commit count: 0

cargo fmt