Skip to content

CodeCs1/dcz-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dcz (DucaZcript)

A basic compiler programming language that share the similarity with C/C++ lang.

Installation

Clone this repo and then compile it using cargo

Dependencies

Newest LLVM (21.1.3)

Usage

To compile a script file, run:

$ dcz foobar.dcz -o foobar.o

Sample code

This 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

Test

Run the test by running: cargo test

Contributing?

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Roadmap

  • Support struct and class
  • 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?

License

MIT

About

The rewritten dcz programming language using Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages