diff --git a/programs/std.ed b/programs/std.ed new file mode 100644 index 000000000..5cbfdd516 --- /dev/null +++ b/programs/std.ed @@ -0,0 +1,4 @@ + +struct String { + +} diff --git a/src/codegen.rs b/src/codegen.rs index 8b6d1d22e..02d995cae 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -547,13 +547,10 @@ impl<'ctx> CodeGen<'ctx> { pub fn compile_literal(&self, term: &LiteralValue) -> Result> { let value = match term { - LiteralValue::String(_s) => { + LiteralValue::String(s) => { + // todo: search string folding and interning. + // self.builder.build_global_string_ptr(s, "literal_str"); todo!() - /* - self - .context - .const_string(s.as_bytes(), true) - .as_basic_value_enum() */ } LiteralValue::Boolean(v) => self .context