hook concat into stl

This commit is contained in:
Aidan Hahn 2021-11-03 23:46:41 -07:00
parent ff5e76ff98
commit 7ca42f18da
No known key found for this signature in database
GPG key ID: 327711E983899316
3 changed files with 6 additions and 3 deletions

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
use crate::str::get_echo;
use crate::str::{get_echo, get_concat};
use crate::append::get_append;
use crate::func::{FTable, func_declare};
use std::rc::Rc;
@ -29,6 +29,9 @@ pub fn get_stdlib() -> Result<Rc<RefCell<FTable>>, String> {
if let Some(s) = func_declare(ft.clone(), Rc::new(RefCell::new(get_append()))) {
return Err(s)
}
if let Some(s) = func_declare(ft.clone(), Rc::new(RefCell::new(get_concat()))) {
return Err(s)
}
return Ok(ft)
}