[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 `as`, `into`

Kasper (Jun 29, 2026, 12:58 PM +0200) 60de4a8d bf6c146d

+2 -1
+1
CHANGELOG.md
··· 2 2 3 3 ## Next 4 4 - Add currency symbols 5 + - Add `as` and `into` keywords for unit conversion 5 6 6 7 ## 4.1.0 - 2026 Jul 29 7 8 - Add currency units
+1 -1
src/lexer.rs
··· 166 166 167 167 fn lex_word(word: &str, lexer: &mut Lexer) -> Result<(), String> { 168 168 let token = match word.to_ascii_lowercase().as_str() { 169 - "to" => Token::TextOperator(To), 169 + "to" | "as" | "into" => Token::TextOperator(To), 170 170 "of" => Token::TextOperator(Of), 171 171 172 172 "hundred" => Token::NamedNumber(Hundred),