#proc-macro #morse #procedural #megamorse

macro megamorse_proc_macro

The procedural macro crate for the megamorse library

3 releases (stable)

1.0.1 Apr 6, 2024
0.1.0 Apr 5, 2024

#21 in #morse


Used in megamorse

MPL-2.0 license

4KB

megamorse_proc_macro

crate documentation license

This crate provides a procedural macro that generates a Morse code representation of a given string literal. Do not use this crate directly, use the Megamorse crate instead.


lib.rs:

This crate contains the procedural macro that is used to convert a string of morse code into a sequence of MorseWords.

Examples

let words = morse!(... ___ ...);

for word in words.into_iter() {
   player.play_word(word).unwrap();
}

No runtime deps