wip print before solution

This commit is contained in:
hugogogo
2026-05-07 13:18:28 +02:00
parent 8c22b98d88
commit f373fef4ac
8 changed files with 77 additions and 19 deletions

View File

@@ -22,13 +22,15 @@ static e_term_sign get_sign(s_token *tokens, int i, int *token_count)
{
*token_count = 1;
}
else if (i == 0) // if most left term, the sign can be ommited for a '+' sign in front of a number or variable
else if (i == 0)
{
// if most left term, the sign can be ommited for a '+' sign in front of a number or variable
*token_count = 0;
return TERM_PLUS;
}
else if (tokens[i - 1].type == TOKEN_EQUAL) // if first token after 'equal', the sign can be ommited for a '+' sign in front of a number or variable
else if (tokens[i - 1].type == TOKEN_EQUAL)
{
// if first token after 'equal', the sign can be ommited for a '+' sign in front of a number or variable
*token_count = 0;
return TERM_PLUS;
}