Skip to content

Commit

Permalink
Minor bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Goubermouche committed Feb 9, 2024
1 parent dd3c2cd commit 5d3f08c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ $ sigma compile main.s
## Project status
As Sigma is currently under heavy development, it isn't ready for stable use, and many breaking changes may (and most likely will) be made. Please note that while the end goal is to target GPU's and other massivelly parallel targets, the current goal is to get a basic CPU-oriented language going, and there isn't a hard timeframe set - for more details see the current status bellow:
- TODO:
- Expression evaluator
- Project cleanup
- Custom structured types
- Better object file emitter (Windows)
- First PTX tests
- Future:
- Unified package manager
- Official GPU support via kernels
Expand Down
2 changes: 1 addition & 1 deletion source/compiler/compiler/type_system/semantic_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ namespace sigma {
if(const handle<data_type> resolved = m_current_scope->find_type(type.unresolved_key)) {
type.members = resolved->members;
type.base_type = resolved->base_type;
type.pointer_level = resolved->pointer_level;
// type.pointer_level = resolved->pointer_level;
return SUCCESS;
}

Expand Down
2 changes: 2 additions & 0 deletions source/compiler/test/main.s
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ i32 main() {
my_user.k.value[1] = 321;

printf("key: %d %d\n", my_user.k.value[0], my_user.k.value[1]);
printf("%d\n", sizeof(user));

ret 0;
}
1 change: 1 addition & 0 deletions tests/random_keywords/sizeof.s
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ i32 main() {
};

printf("%d\n", sizeof(s2));
printf("%d\n", sizeof(s2*));

ret 0;
}
1 change: 1 addition & 0 deletions tests/random_keywords/sizeof_expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
8
4
16
8

0 comments on commit 5d3f08c

Please sign in to comment.