Skip to content

Commit

Permalink
Include the list stdlib in the global environment
Browse files Browse the repository at this point in the history
  • Loading branch information
yannham committed Oct 9, 2020
1 parent 3928f4a commit df2e2db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ impl Program {
&mut global_env,
)
.map_err(|e| Error::from(e))?;
self.load_stdlib("<stdlib/lists.ncl>", crate::stdlib::LISTS, &mut global_env)
.map_err(Error::from)?;

Ok(global_env)
}

Expand Down

0 comments on commit df2e2db

Please sign in to comment.