Skip to content
/ scc Public

C11 Compiler written in Zig

Notifications You must be signed in to change notification settings

Rexicon226/scc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinon's C Compiler

A very experiment C compiler that currently only emits ASM. The goal is to have something barely useable.

Heavily inspired from https://github.com/rui314/chibicc, the parser code is genius.

  • Arrays
  • Zero-arity Functions
  • Pointer Arthemtics
  • Pointers
  • While Statement
  • For Statement
  • Blocks { ... }
  • If Statement
  • Multi Character Variables
  • Returns
  • Null Statement
  • Equalities <= != ==
  • Unaries

Cool Sources

A simple, possibly correct LR parser for C11