c2lang / c2compiler

the c2 programming language
c2lang.org
Apache License 2.0
702 stars 47 forks source link

Refactoring actual errors (panics) #42

Closed lerno closed 5 years ago

lerno commented 5 years ago
  1. TODO is moved to a macro, so that the location of the error is easy to detect.
  2. A FATAL_ERROR macro is introduced to replace assert(0) and other things.
  3. Some review of current TODO / assert(0) to insert the right type of assert.
  4. Fix issues with ListeralAnalyser and unary operations on literals.
bvdberg commented 5 years ago

I see you based this commit on top of the Lexer example. I'll just cherry pick the top one..

bvdberg commented 5 years ago

merged

lerno commented 5 years ago

Very sorry about that mistake, I thought I was working of my master branch :(