Skip to content

Conversation

rattrayalex
Copy link

The previous implementation #10 was flawed.

This should be much more robust, and doesn't require any syntax adjustments/compromises. It also checks for matching parens. Unfortunately it makes parsing if ( a little slower.

This also changes the JS semantics of do-while to enforce a semicolon or newline after the while condition, regardless of whether parens are used.

@rattrayalex rattrayalex merged commit f995ec8 into lightscript Apr 12, 2017
@rattrayalex rattrayalex deleted the allow-paren-expr-in-if-2 branch April 12, 2017 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant