input function
This commit is contained in:
parent
df6b5b5f06
commit
1ce5fd3454
4 changed files with 35 additions and 5 deletions
12
src/stl.rs
12
src/stl.rs
|
|
@ -595,6 +595,18 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
}
|
||||
);
|
||||
|
||||
syms.insert(
|
||||
"input".to_string(),
|
||||
Symbol {
|
||||
name: String::from("input"),
|
||||
args: Args::Strict(vec![Type::String]),
|
||||
conditional_branches: false,
|
||||
docs: strings::INPUT_DOCSTRING.to_string(),
|
||||
value: ValueType::Internal(Rc::new(strings::input_callback)),
|
||||
..Default::default()
|
||||
}
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue