Author Topic: Today: large update  (Read 7638 times)

bas

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Today: large update
« on: June 14, 2013, 09:11:11 PM »
Hi,

While I've been busy in general, I've managed to do some work on C2!
I've just pushed 48 patches to the C2Compiler archive. Included in the update are:
  • parsing+analysing enum types and enum constants
  • the analyser now checks a lot more (duplicate default cases, etc)
  • c-code generation for the entire AST
  • c-code generation can now generate headers
  • c-code generation can generate 1 file per package or 1 file with everything
  • IR-code generation can generate 1 file (Module) per package or 1 file with everything
  • parsing ternary operator
  • bugfixes
  • replaced printf's with proper error messages

Next on the line is checking the left-hand values of expressions. For example int a = "hello"; should not be
allowed  ;D.
After that the analysis part has a solid base and work can continue on loading external C libraries/headers,
like stdio.h.

Have fun! (I have),
Bas