Working compilation

This commit is contained in:
elvis
2025-07-13 17:28:13 +02:00
parent 9207d588b8
commit 28b5288535
5 changed files with 251 additions and 68 deletions

View File

@ -20,9 +20,9 @@ pub struct Translator {
impl Translator {
pub fn new() -> Self {
Translator {
strings: HashMap::new(),
reverse: HashMap::new(),
last_id: 0,
strings: HashMap::from([("*".into(), 0)]),
reverse: HashMap::from([(0, "*".into())]),
last_id: 1,
}
}
}