Skip to content

Think of difficult to parse programs #26

@alexschneider

Description

@alexschneider

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions