Completed docs, added icon

This commit is contained in:
2023-05-28 17:24:56 +01:00
parent 6b71164aca
commit 6f5a9d05dd
28 changed files with 295 additions and 5 deletions

View File

@@ -10,7 +10,9 @@ use crate::utils::unwrap_or;
/// An IO command to be handled by the host application.
#[derive(Clone, Debug)]
pub enum IO {
/// Print a string to standard output and resume execution
Print(String, ExprInst),
/// Read a line from standard input and pass it to the calback
Readline(ExprInst),
}
atomic_inert!(IO);

View File

@@ -6,6 +6,8 @@ use super::str::str;
use crate::interner::Interner;
use crate::pipeline::ConstTree;
/// Build the standard library used by the interpreter by combining the other
/// libraries
pub fn mk_stl(i: &Interner) -> ConstTree {
cpsio(i) + conv(i) + bool(i) + str(i) + num(i)
}

View File

@@ -1,3 +1,4 @@
//! Constants exposed to usercode by the interpreter
mod assertion_error;
mod bool;
mod conv;