c2lang / c2compiler

the c2 programming language
c2lang.org
Apache License 2.0
703 stars 49 forks source link

No clang w include #57

Closed lerno closed 6 years ago

lerno commented 6 years ago

This alternative checkin skips the last few commits, stopping at a point where include is still fully working. It is an alternative to #55 and #46

bvdberg commented 6 years ago

This branch differs a lot from the clang_parts_to_c2c. More than 40.000 lines of code. Did you really remove all that code before?

lerno commented 6 years ago

@bvdberg Yes! Pulling out the include directive allowed me to remove much of the header searching etc. After that I also found other things (not related to include) that I could remove, so that should be correct. You can compare with the no_clang branch, there you can see the additional commits that encompass those additional 40k of deleted lines. I spent a long time on this.

bvdberg commented 6 years ago

Indeed, Maybe you can still keep that patch on a branch for now and we'll get to work on a macro system asap..

lerno commented 6 years ago

The cleanup is not strictly necessary I think. We can replace it when we replace the lexer some time in the future. Right now I'm just keen on having the move from Clang complete so I can work from on top of that instead.

bvdberg commented 6 years ago

I'm merging it.. just updating the INSTALL.md as well..

bvdberg commented 6 years ago

doing a final clean build (including llvm) so takes around an hour.

bvdberg commented 6 years ago

The end of an era. C2 no longer depends on Clang!