mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-23 00:18:24 +00:00
ok
This commit is contained in:
parent
912419fe23
commit
aef84e9d45
4
programs/std.ed
Normal file
4
programs/std.ed
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
struct String {
|
||||||
|
|
||||||
|
}
|
|
@ -547,13 +547,10 @@ impl<'ctx> CodeGen<'ctx> {
|
||||||
|
|
||||||
pub fn compile_literal(&self, term: &LiteralValue) -> Result<BasicValueEnum<'ctx>> {
|
pub fn compile_literal(&self, term: &LiteralValue) -> Result<BasicValueEnum<'ctx>> {
|
||||||
let value = match term {
|
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!()
|
todo!()
|
||||||
/*
|
|
||||||
self
|
|
||||||
.context
|
|
||||||
.const_string(s.as_bytes(), true)
|
|
||||||
.as_basic_value_enum() */
|
|
||||||
}
|
}
|
||||||
LiteralValue::Boolean(v) => self
|
LiteralValue::Boolean(v) => self
|
||||||
.context
|
.context
|
||||||
|
|
Loading…
Reference in a new issue