-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
We're going to have to do a little bit of backtracking in our block parsing to ensure that we don't create ambiguity for something like:
y := 'bar'
baz := None
x := if y : foo = 'bar': baz = 'z' # we assign baz and x to 'z'
but it shouldn't be too hard - we may have to parse the "block" first, and then backtrack to parse the expression prior to the : beginning the "block". This is only a problem on single line expressions.
We're definitely going to need to think of gotchas and figure out ways to deal with them.