Make prelude be separate file
This commit is contained in:
parent
72d0cfe466
commit
47f7eb1ef6
@ -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
|
||||
|
4
schala-lang/language/src/prelude.schala
Normal file
4
schala-lang/language/src/prelude.schala
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
type Option<T> = Some(T) | None
|
||||
type Color = Red | Green | Blue
|
||||
type Ord = LT | EQ | GT
|
Loading…
Reference in New Issue
Block a user