Skip to content

Albab-Hasan/redix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redix

A C compiler written in C.

My goal for this project is to learn how compilers work by building a functional compiler. So far I've implemented a lexer, a parser and code generation. Currently it supports:

  • arithmetic operators: +, -, *, /
  • unary operators: -, ~, !
  • comparison operators: <, >, <=, >=, ==, !=
  • logical operators: &&, ||
  • local variable declarations, assignments, and references
  • if/else statements
  • while loops
  • for loops
  • break and continue
  • multiple functions with parameters and calls

License

MIT

About

My attempt at building a C compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages