Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recovered some lost code, implemented Pointers and struct definition …
…backend.
- Loading branch information
Showing
12 changed files
with
139 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
tests/d_parser_mach_* | ||
d_parser_mach* | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
Int main(Int argc, String argv) {print("Hello, World!"); | ||
print("How are you today?"); | ||
printf("You gave me '%d' arguments", argc); | ||
return 41 + 1;} | ||
typedef struct { | ||
int* x; | ||
int y; | ||
} Position; | ||
|
||
typedef struct { | ||
Position* super; | ||
int z; | ||
} _3DPosition; | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
print("Hello, World!"); | ||
print("How are you today?"); | ||
printf("You gave me '%d' arguments", argc); | ||
Position* pos = malloc(sizeof(Position)); | ||
_3DPosition* _3dpos = malloc(sizeof(_3DPosition)); | ||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
main as Function(argc as Int, argv as String) -> Int: | ||
Position <- Object: | ||
x as Int* | ||
y as Int | ||
|
||
_3DPosition <- Position: | ||
z as Int | ||
|
||
main as Function(argc as Int, argv as String*) -> Int: | ||
print("Hello, World!") | ||
print("How are you today?") | ||
printf("You gave me '%d' arguments", argc) | ||
return 41 + 1 | ||
pos as Position* = malloc(sizeof(Position)) | ||
_3dpos as _3DPosition* = malloc(sizeof(_3DPosition)) | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.