hyc

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

commit 37773ce255040f1dea3bf8175659e7f694287953
parent f6f75ab673bdbeffe4fdcf349a7bba11e41a15d7
Author: kocotian <kocotian@kocotian.pl>
Date:   Sun,  1 Aug 2021 23:09:42 +0000

Negation fix (strcmp 😩)

Diffstat:
Mast.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ast.c b/ast.c @@ -244,7 +244,7 @@ tokenstoASTStatementConditional(Tokenizer *t) new(stat.Conditional.body) = tokenstoASTStatement(t); tok = enextToken(t); - if (tok->type == TokenIdentifier && Strccmp(tok->str, "else")) + if (tok->type == TokenIdentifier && !Strccmp(tok->str, "else")) new(stat.Conditional.elsebody) = tokenstoASTStatement(t); else { prevToken(t); stat.Conditional.elsebody = NULL;