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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user