wip parsing and error

This commit is contained in:
hugogogo
2026-05-03 00:20:39 +02:00
parent c24461cb33
commit 42cfdf9734
6 changed files with 134 additions and 285 deletions

View File

@@ -1,11 +1,6 @@
#ifndef PARSER_H
#define PARSER_H
#include "libft.h"
#include "lexer.h"
#include "errors.h"
#include <stdbool.h>
typedef enum
{
TERM_LEFT, // a in "a = b"
@@ -25,7 +20,7 @@ typedef struct
term_position position;
term_sign sign;
double coefficient;
int exponent;
double exponent;
} term;
int parse(token *tokens, term *terms, int terms_count_max);