Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

meson setup build --buildtype=debug
meson compile -C build

Run tests

ninja -C build test

Run compiler

./build/c <source_file>

What's still limited:

  • Function call arguments: The parser now skips argument expressions instead of erroring, but the codegen doesn't emit proper argument setup
  • Function-like macros: Not expanded (leaked as raw identifiers with parenthesized args, but the parser skips them)
  • Pointer arithmetic: Arrays are parsed ([]) but binary + with pointers to emit offsets is not implemented
  • Code gen test: The global main addition from the emit_entry fix changed output: pre-existing difference

About

Small subset of C compiler features

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages