c2lang / c2compiler

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

Some improvements to IR. Also clarified state in AST analysis. #60

Closed lerno closed 6 years ago

lerno commented 6 years ago
bvdberg commented 6 years ago

There are 2 branches, some_IR_work and ir_improvements, what is the difference? I've looked at some_IR_work and that seems to be in the right shape (except no new tests). when adding new analyser/generation functionality, i except some new unit tests. This way is also very easy to see what has been added.

One other thing, the current codebase uses 'Type var' instead of 'Type var'. I personally also prefer this, since in my opinion, the type is 'Type*'.

bvdberg commented 6 years ago

Did you know that you can run unit-tests individually by running:

./build/tools/tester test/Scope
./build/tools/tester test/CGenerator/hello_world.c2t

speeds things up a bit ;)

lerno commented 6 years ago

I actually write a small test case and compile manually since the tester framework swallows all debug code :)

I usually do make tests which I don't think have that ability to pinpoint individual tests?

bvdberg commented 6 years ago

make tests actually does (in root) build/tools/tester test