Parser now uses updated lexer

Much simpler, uses a switch case which is a much faster method of
doing the parsing.  Though roughly equivalent in terms of LOC, I feel
that this is more extensible
This commit is contained in:
2023-11-01 15:09:56 +00:00
parent 93d234cd48
commit 6a270eda1e
2 changed files with 164 additions and 163 deletions

View File

@@ -22,6 +22,7 @@ typedef enum
PERR_OK = 0,
PERR_INTEGER_OVERFLOW,
PERR_NOT_A_NUMBER,
PERR_EXPECTED_UTYPE,
PERR_EXPECTED_TYPE,
PERR_EXPECTED_SYMBOL,
PERR_EXPECTED_OPERAND,