fix: tests and main

This commit is contained in:
2026-05-13 18:48:14 -06:00
parent 3ec73559ee
commit ab791dbc9b
8 changed files with 24 additions and 205 deletions

View File

@@ -30,7 +30,7 @@ ParserU8Result prefix_rbp(Token token) {
}
ParserU8Result postfix_lbp(Token token) {
if (token.type != TOKEN_INTEGER) {
if (token.type != TOKEN_OPERATOR) {
return (ParserU8Result) {
.is_valid = false,
.err = PARSER_UNEXPECTED_TOKEN,
@@ -52,7 +52,7 @@ ParserU8Result postfix_lbp(Token token) {
}
ParserU8Result infix_lbp(Token token) {
if (token.type != TOKEN_INTEGER) {
if (token.type != TOKEN_OPERATOR) {
return (ParserU8Result) {
.is_valid = false,
.err = PARSER_UNEXPECTED_TOKEN,
@@ -86,7 +86,7 @@ ParserU8Result infix_lbp(Token token) {
}
ParserU8Result infix_rbp(Token token) {
if (token.type != TOKEN_INTEGER) {
if (token.type != TOKEN_OPERATOR) {
return (ParserU8Result) {
.is_valid = false,
.err = PARSER_UNEXPECTED_TOKEN,