forked from Orchid/orchid
Completed docs, added icon
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Constants exposed to usercode by the interpreter
|
||||
mod assertion_error;
|
||||
mod bool;
|
||||
mod conv;
|
||||
|
||||
Reference in New Issue
Block a user