Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#469: Update grammar to support Swift 3.0.1 #475

Merged
merged 8 commits into from
Mar 25, 2017
Merged

Conversation

a4sriniv
Copy link
Member

Resolves #469.

- Add grammar for tuple expressions
- Add playground literal grammar
- Remove expressionElementList and use tupleElementList instead
- Add function call grammar
- Modify postfixExpression grammar
- Fix every test that broke because of these changes ...
@@ -771,11 +798,7 @@ postfixOperator : operator ;
sType
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this named sType instead of Type for name clash?

@adityatrivedi
Copy link
Member

adityatrivedi commented Mar 6, 2017

Great work! 🎉 Don't forget to update the wiki 😃 ! Can you also update the README.md to state we support Swift 3.0.1 instead of Swift 2?

Copy link
Member

@adityatrivedi adityatrivedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add grammar tests for labeled if statements?

@@ -99,7 +99,7 @@ defaultLabel : 'default' ':' ;

// GRAMMAR OF A LABELED STATEMENT

labeledStatement : statementLabel loopStatement | statementLabel switchStatement ;
labeledStatement : statementLabel (loopStatement | ifStatement | switchStatement | doStatement) ;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add grammar tests for this change?

unionStyleEnumMembers : unionStyleEnumMember+ ;
unionStyleEnumMember : declaration | unionStyleEnumCaseClause ';'? ;
unionStyleEnumMember : declaration | unionStyleEnumCaseClause ';'? | compilerControlStatement ;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add grammar tests for these changes?

@adityatrivedi adityatrivedi added this to the Sprint 22 milestone Mar 25, 2017
@a4sriniv a4sriniv merged commit f5f0ea6 into master Mar 25, 2017
@a4sriniv a4sriniv deleted the as-469-swift-3_0_1 branch March 25, 2017 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants