lk534 / mabel

C-style language designed for simple lexical and semantic analysis.
MIT License
1 stars 0 forks source link

Proper logger #2

Open lk534 opened 8 months ago

lk534 commented 8 months ago

It would be nice to have a proper logging system that reports where the errors are coming for and supports basic ANSI colors instead of just calling printf() directly when an error is found.

lk534 commented 7 months ago

Update aefff9e

Written ANSI colored logger which outputs file name with FILE define and provides the following macros:

MBL_DBG MBL_INF MBL_WRN MBL_ERR MBL_TRM

The MBL_DBG macro will only print if MBL_DBG_ENABLE is set.

Next steps