Crates.io | trigraph |
lib.rs | trigraph |
version | 0.1.3 |
source | src |
created_at | 2022-07-19 01:39:38.931942 |
updated_at | 2022-07-19 09:44:58.188023 |
description | A trigraph macro for your rust code |
homepage | |
repository | |
max_upload_size | |
id | 627993 |
size | 7,335 |
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));
??>
}
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 ]
.