Make prelude be separate file

This commit is contained in:
greg 2018-11-05 20:55:03 -08:00
parent 72d0cfe466
commit 47f7eb1ef6
2 changed files with 5 additions and 5 deletions

View File

@ -67,11 +67,7 @@ impl Schala {
}
pub fn new() -> Schala {
let prelude = r#"
type Option<T> = Some(T) | None
type Color = Red | Green | Blue
type Ord = LT | EQ | GT
"#;
let prelude = include_str!("prelude.schala");
let mut s = Schala::new_blank_env();
s.execute_pipeline(prelude, &EvalOptions::default());
s

View File

@ -0,0 +1,4 @@
type Option<T> = Some(T) | None
type Color = Red | Green | Blue
type Ord = LT | EQ | GT