Skip to content

Commit

Permalink
compiler: use structure to generate code for identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 4, 2024
1 parent d3df414 commit 6da7b6c
Show file tree
Hide file tree
Showing 7 changed files with 1,408 additions and 1,390 deletions.
3 changes: 3 additions & 0 deletions src/julec/obj/cxx/derive.jule
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use std::jule::sema::{Struct}

/*

fn get_derive_fn_decl_clone(&s: &Struct): str {
let mut obj = gen_struct_kind(s)
obj += " clone(void) const "
Expand All @@ -16,3 +18,4 @@ fn get_derive_fn_def_clone(&s: &Struct): str {
obj += "::clone(void) const "
ret obj
}
*/
3 changes: 3 additions & 0 deletions src/julec/obj/cxx/expr.jule
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD 3-Clause
// license that can be found in the LICENSE file.

/*

use env

use conv for std::conv
Expand Down Expand Up @@ -1320,3 +1322,4 @@ fn get_init_expr(mut t: &TypeKind): str {
}
ret gen_type_kind(t) + "()"
}
*/
Loading

0 comments on commit 6da7b6c

Please sign in to comment.