initial integration with ic10editor mod

This commit is contained in:
2025-11-28 17:11:08 -07:00
parent e274b33553
commit 9a9fa9517f
10 changed files with 175 additions and 71 deletions

View File

@@ -1125,9 +1125,7 @@ impl<'a, W: std::io::Write> Compiler<'a, W> {
}))
}
_ => {
todo!()
}
t => Err(Error::Unknown(format!("{t:?}\n\nNot yet implemented"))),
}
}

View File

@@ -1260,7 +1260,9 @@ impl<'a> Parser<'a> {
let arg = literal_or_variable!(invocation.arguments.first());
Ok(SysCall::Math(sys_call::Math::Trunc(arg)))
}
_ => todo!(),
_ => Err(Error::UnsupportedKeyword(token_from_option!(
self.current_token
))),
}
}
}

View File

@@ -457,7 +457,11 @@ impl<'a> Iterator for Tokenizer<'a> {
type Item = Result<Token, Error>;
fn next(&mut self) -> Option<Self::Item> {
todo!()
match self.next_token() {
Ok(Some(tok)) => Some(Ok(tok)),
Ok(None) => None,
Err(e) => Some(Err(e)),
}
}
}