1
0

Continue implementing JSON parsing

This commit is contained in:
Jeff 2024-06-05 12:10:57 -04:00
parent f625568ced
commit f5bcf9511a

View File

@ -109,7 +109,7 @@ impl<'a> Interpreter<'a> {
} }
pub fn load_std(&mut self) -> Result<(), InterpreterError> { pub fn load_std(&mut self) -> Result<(), InterpreterError> {
let std_sources: [(Arc<str>, Arc<str>); 4] = [ let std_sources: [(Arc<str>, Arc<str>); 5] = [
( (
Arc::from("std/core.ds"), Arc::from("std/core.ds"),
Arc::from(include_str!("../../std/core.ds")), Arc::from(include_str!("../../std/core.ds")),
@ -122,6 +122,10 @@ impl<'a> Interpreter<'a> {
Arc::from("std/io.ds"), Arc::from("std/io.ds"),
Arc::from(include_str!("../../std/io.ds")), Arc::from(include_str!("../../std/io.ds")),
), ),
(
Arc::from("std/json.ds"),
Arc::from(include_str!("../../std/json.ds")),
),
( (
Arc::from("std/thread.ds"), Arc::from("std/thread.ds"),
Arc::from(include_str!("../../std/thread.ds")), Arc::from(include_str!("../../std/thread.ds")),