hyc

Hydrogen Compiler written in C
git clone git://git.kocotian.pl/hyc.git
Log | Files | Refs | README | LICENSE

commit c5a48525698470f5894a87b3730387f0fe9e2970
parent d22835930aebfec0d46115637f397256d98990f1
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 26 Jul 2021 14:16:17 +0000

Handling new tokens in switch

Diffstat:
Mtokenize.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/tokenize.c b/tokenize.c @@ -168,6 +168,16 @@ strTokenType(TokenType type) case TokenClosingBracket: return "closing bracket"; break; case TokenOpeningBrace: return "opening brace"; break; case TokenClosingBrace: return "closing brace"; break; + case TokenExclamationMark: return "exclamation mark"; break; + case TokenAssignment: return "assignment sign"; break; + case TokenNotEqual: return "not equal sign"; break; + case TokenEqual: return "equal sign"; break; + case TokenMinus: return "minus sign"; break; + case TokenMinusMinus: return "double minus sign"; break; + case TokenMinusEqual: return "minus equal sign"; break; + case TokenPlus: return "plus sign"; break; + case TokenPlusPlus: return "double plus sign"; break; + case TokenPlusEqual: return "plus equal sign"; break; case TokenAsterisk: return "asterisk"; break; case TokenAmperstand: return "amperstand"; break; case TokenSemicolon: return "semicolon"; break;