From a03d87dc8e10a48216a00345c64ffacf463467b1 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Fri, 5 Jul 2024 22:15:36 -0400 Subject: [PATCH] Move stdlib --- crates/rue-compiler/src/compiler/context.rs | 2 +- {std => crates/rue-compiler}/stdlib.rue | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {std => crates/rue-compiler}/stdlib.rue (100%) diff --git a/crates/rue-compiler/src/compiler/context.rs b/crates/rue-compiler/src/compiler/context.rs index 1b27a9a..d81e92c 100644 --- a/crates/rue-compiler/src/compiler/context.rs +++ b/crates/rue-compiler/src/compiler/context.rs @@ -32,7 +32,7 @@ pub fn setup_compiler(db: &mut Database) -> CompilerContext<'_> { } pub fn load_standard_library(ctx: &mut CompilerContext<'_>) -> SymbolId { - let (root, parser_errors) = parse(include_str!("../../../../std/stdlib.rue")); + let (root, parser_errors) = parse(include_str!("../../stdlib.rue")); assert_eq!(parser_errors, Vec::new()); let (module_id, declarations) = ctx.compiler.declare_root(&root); diff --git a/std/stdlib.rue b/crates/rue-compiler/stdlib.rue similarity index 100% rename from std/stdlib.rue rename to crates/rue-compiler/stdlib.rue