trigraph 0.1.3

A trigraph macro for your rust code
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 7.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 255.66 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 8051Enthusiast

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 ].