monte-language / typhon

A virtual machine for Monte.
Other
67 stars 10 forks source link

`for x in xs:` gives unhelpful syntax error #171

Closed dckc closed 7 years ago

dckc commented 7 years ago

Given the python heritage, expected DEDENT got IDENTIFIER is not maximally helpful for forgetting parens in:

for expr in examples:
    ...
MostAwesomeDude commented 7 years ago

Parser upgrade incoming:

▲> m`for x in xs {}`
Parse error: Exception: expected '(' for start of for-expr iterable, got "IDENTIFIER"