init parser

This commit is contained in:
hugogogo
2026-04-30 23:19:14 +02:00
parent 7a30dcc345
commit 512ba9b5f4
7 changed files with 70 additions and 13 deletions

View File

@@ -36,11 +36,13 @@ D_LIB = ./libft
D_HEADERS = ./headers
HEADERS = computorv1.h \
errors.h \
lexer.h
lexer.h \
parser.h
D_SRCS = ./src
SRCS = computorv1.c \
errors.c \
lexer.c
lexer.c \
parser.c
# COMPILATION CONFIG :
CC = gcc
@@ -95,7 +97,7 @@ $(NAME): $(OBJS)
run: $(NAME)
@echo $(YELLOW)"run"$(RESET)
@./$(NAME) "3 * x^2 + 1 * x^1 - 2 * x^0 = 5 * x^1"
@./$(NAME) "3.4 * x^2 + 1 * x^1 - 2 * x^0 = 5.123 * x^1"
clean:
$(RM_OBJS)