diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | code/main.felan | 2 | ||||
-rw-r--r-- | src/compiler/lexer.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -20,9 +20,9 @@ INC_DIRS := $(SRC_DIR) INC_FLAGS := $(addprefix -I,$(INC_DIRS)) # OP_FLAG := -Ofast -OP_FLAG := -O3 +# OP_FLAG := -O3 # OP_FLAG := -Oz -# OP_FLAG := -g +OP_FLAG := -g # CFLAGS := $(INC_FLAGS) -Wall -Wextra -std=gnu23 -DPRINT_STATISTICS -DPRINT_COMPILE_TREE $(OP_FLAG) CFLAGS := $(INC_FLAGS) -Wall -Wextra -std=gnu23 -DPRINT_STATISTICS $(OP_FLAG) diff --git a/code/main.felan b/code/main.felan index daad667..8db7e31 100644 --- a/code/main.felan +++ b/code/main.felan @@ -1,4 +1,4 @@ -@import("basic.felan"); +@import("lib/print.felan"); main :: () -> void { str := "123\n"; diff --git a/src/compiler/lexer.c b/src/compiler/lexer.c index 1c7e546..6fe481c 100644 --- a/src/compiler/lexer.c +++ b/src/compiler/lexer.c @@ -417,7 +417,7 @@ inline __attribute__((always_inline)) void lexerPushClear(LexerNodeArray *array, goto RETURN_SUCCESS; } printLog("Bad token '%d'", *node_token); - exit(1); + UNREACHABLE; RETURN_SUCCESS: *node_str_begin = iter; *node_token = token; |