[READ-ONLY] Mirror of https://github.com/probablykasper/cpc. Text calculator with support for units and conversion cpc.kasper.space
calculator cli conversion converter library math package units units-converter wasm website
0

Configure Feed

Select the types of activity you want to include in your feed.

Add currency symbols

Kasper (Jun 29, 2026, 11:56 AM +0200) e9b87a1e ea5d4677

+17 -2
+17 -2
src/lexer.rs
··· 637 637 "c" | "celsius" => Token::unit(Celsius), 638 638 "f" | "fahrenheit" | "fahrenheits" => Token::unit(Fahrenheit), 639 639 640 - // Currency units 640 + "AU$" => Token::unit(AUD), 641 + "R$" => Token::unit(BRL), 642 + "CA$" | "C$" => Token::unit(CAD), 641 643 "€" | "euro" | "euros" => Token::unit(EUR), 642 - "$" => Token::unit(USD), 643 644 "£" => Token::unit(GBP), 645 + "HK$" => Token::unit(HKD), 646 + "₹" | "Rs" => Token::unit(INR), 647 + "₪" => Token::unit(ILS), 644 648 "¥" => Token::unit(JPY), 649 + "₩" => Token::unit(KRW), 650 + "MX$" => Token::unit(MXN), 651 + "NZ$" => Token::unit(NZD), 652 + "₱" => Token::unit(PHP), 653 + "zl" | "zł" => Token::unit(PLN), 654 + "S$" => Token::unit(SGD), 655 + "฿" => Token::unit(THB), 656 + "tl" | "₺" => Token::unit(TRY), 657 + "₴" => Token::unit(UAH), 658 + "$" | "US$" => Token::unit(USD), 659 + "₫" => Token::unit(VND), 645 660 646 661 string if let Ok(unit) = currency_code_to_unit(string) => Token::unit(unit), 647 662 string => {