initial integration with ic10editor mod
This commit is contained in:
@@ -1125,9 +1125,7 @@ impl<'a, W: std::io::Write> Compiler<'a, W> {
|
||||
}))
|
||||
}
|
||||
|
||||
_ => {
|
||||
todo!()
|
||||
}
|
||||
t => Err(Error::Unknown(format!("{t:?}\n\nNot yet implemented"))),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
))),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user