Skip to content

Commit

Permalink
add some aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 13, 2024
1 parent 48811a5 commit 3ea8094
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static ALIASES: Lazy<HashMap<Primitive, &[&str]>> = Lazy::new(|| {
(Primitive::Box, &["bx"]),
(Primitive::IndexOf, &["idx"]),
(Primitive::Switch, &["sw"]),
(Primitive::Floor, &["flr"]),
(Primitive::Floor, &["flr", "flor"]),
(Primitive::Range, &["ran"]),
(Primitive::Transpose, &["tra"]),
(Primitive::Partition, &["par"]),
Expand All @@ -372,6 +372,8 @@ static ALIASES: Lazy<HashMap<Primitive, &[&str]>> = Lazy::new(|| {
(Primitive::Gt, &["gt"]),
(Primitive::Ge, &["ge", "geq"]),
(Primitive::Utf8, &["utf", "utf__8"]),
(Primitive::First, &["fst"]),
(Primitive::Last, &["lst"]),
(Primitive::ImageEncode, &["&ime", "imen"]),
(Primitive::GifEncode, &["&gife", "gifen"]),
(Primitive::AudioEncode, &["&ae", "auden"]),
Expand Down Expand Up @@ -560,6 +562,8 @@ impl Primitive {
use Primitive::*;
Some(match name {
"kork" => vec![(Keep, "k"), (On, "o"), (Rows, "r"), (Keep, "k")],
"rkok" => vec![(Rows, "r"), (Keep, "k"), (On, "o"), (Keep, "k")],
"dor" => vec![(Div, "d"), (On, "o"), (Range, "r")],
"awm" => vec![(Assert, "a"), (With, "w"), (Match, "m")],
_ => return None,
})
Expand Down

0 comments on commit 3ea8094

Please sign in to comment.