adamishaq/Virtual-Ecology-Workbench — Issue #7: Grammar requires delimiter for if statements
Author: cb2109
Created: 2011-10-23 12:36:06+00:00
State: open

Grammar needs some way of showing that an if statement has ended, this could either be using endif or by putting the whole statement within brackets, this is only important for the expression variety of if statements mainly because you could have:
if (true) then 1 else 3 + 1, this could be interpreted as if (true) then 1 else (3+1) or as (if (true) then 1 else 3) + 1.

There are multiple solutions to this problem, the main ones are the endif token, bracketing the whole thing or bracketing the sub expressions themselves.