add debug mode and stdin input

This commit is contained in:
hugogogo
2026-05-04 20:40:51 +02:00
parent edc678cee4
commit dff842ccab
5 changed files with 155 additions and 10 deletions

View File

@@ -96,8 +96,12 @@ $(NAME): $(OBJS)
$(CC) $(OBJS) -o $@ $(LFLAGS)
run: $(NAME)
@echo $(YELLOW)"run"$(RESET)
@./$(NAME) "3.4 * x^2 + 1 * x^1 - 2.0 * x^0 = 5.123 * x^1"
@echo $(BLUE)"\n -> run \n"$(RESET)
./$(NAME) -d "3.4 * x^2 + 1 * x^1 - 2.0 * x^0 = 5.123 * x^1"
@echo $(BLUE)"\n -> run \n"$(RESET)
./$(NAME) -d "3 * x^2 + 5 * x^1 - 2 * x^0 = 5 * x^1"
@echo $(BLUE)"\n -> run \n"$(RESET)
./$(NAME) -d "3*x^2 + 2*x = 0"
clean:
$(RM_OBJS)