Skip to content

Alzamer/Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Compiler

C compiler made in Rust Initially I planned to help myself with tools like lex/bison, but I will try to code everything on my own.

Update

When I learnt a little bit more about compilers I realised my initial idea is:

  • time-consuming
  • complex
  • hard (optimizations on every phase etc.)

So I decided to make a compiler (toy-compiler more accurately) of a subset of C, which consists of:

  • char,** int**, void,** for**,** if**, else, struct, return
  • #define and #undef
  • functions and structs

Resources

Dragon book, Rust documentation

About

C compiler made in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages