Closed n-arms closed 3 years ago
Expressions shouldn't have to have "*" to suggest multiplication, as function calls would be done by "[" and "]", and so something like:
While parsing (similar algorithm to unary operators), whenever:
ExpressionSyntax
Var
BinOp
Const
Description
Expressions shouldn't have to have "*" to suggest multiplication, as function calls would be done by "[" and "]", and so something like:
Implementation
While parsing (similar algorithm to unary operators), whenever:
ExpressionSyntax
are found next to each other. This could include:Var
: πr^2BinOp
andConst
: 3(1+2)