tui_00: runs again

This commit is contained in:
facile pop culture reference 2026-07-25 08:54:57 +03:00
parent ad1a514edd
commit 4cfe8d087c

View file

@ -39,6 +39,14 @@ struct State {
}
impl Interpret<Tui, Option<XYWH<u16>>> for State {
fn interpret_word <'a> (&'a self, to: &mut Tui, lang: &'a impl Symbol) -> Drawn<u16> {
match lang.src()? {
Some(":hello") => "hello".draw(to),
Some(":world") => "world".draw(to),
Some(":hello-world") => "Hello World!".draw(to),
_ => todo!()
}
}
fn interpret_expr <'a> (&'a self, to: &mut Tui, lang: &'a impl Expression) -> Drawn<u16> {
Ok(Some(if let Some(area) = eval_view(self, to, lang)? {
area