Added TODO for `parseExpression` - found possible way to implement expression parsing correctly

This commit is contained in:
Tristan B. Velloza Kildaire 2021-03-05 11:46:51 +02:00
parent 94f15af031
commit f547a1127d
1 changed files with 11 additions and 0 deletions

View File

@ -238,6 +238,17 @@ public final class Parser
}
}
/**
* Parses an expression
*
* I think we need a loop here to move till we hit a terminator like `)`
* in the case of a condition's/function's argument expression or `;` in
* the case of a assignment's expression.
*
* This means we will be able to get the `+` token and process it
* We will also terminate on `;` or `)` and that means our `else` can be
* left to error out for unknowns then
*/
private void parseExpression()
{
/* TODO: Implement expression parsing */