A basic compiler programming language that share the similarity with C/C++ lang.
Clone this repo and then compile it using cargo
Newest LLVM (21.1.3)
To compile a script file, run:
$ dcz foobar.dcz -o foobar.oThis is a working code for printing a simple "Hello World"
extern func printf(char* str);
func main() -> int {
printf("hello world\n");
return 0;
}
Other samples can be found inside examples folder
Run the test by running: cargo test
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Support
structandclass - Actually complete the AST Checker
- Support signed and unsigned data type
- Make it can do 'self-hosting'
- Support "import" from other file
- Do some optimization for the executable
- Make a Wiki page?