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

First round of grammar review results #77

Merged
merged 13 commits into from Jul 18, 2017
Merged

Conversation

szarnekow
Copy link
Contributor

A few fragments were extracted, some unnecessary rule delegation was removed.

Added a few TODOs for cases, which would deserve an own abstraction in the EPackage.

@jpilgrim Please review.

Sebastian Zarnekow added 12 commits July 14, 2017 10:54
commit a3c70cf
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Wed Jul 12 11:18:07 2017 +0200

    Minor reformatting

    Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>

commit 1e5d59a
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Wed Jul 12 11:11:25 2017 +0200

    Refactored tests

commit afc166e
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:46:21 2017 +0200

    Added more unit tests

commit 71cea9e
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:45:37 2017 +0200

    Fixed bug in template for parser

commit ba47ac8
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:44:18 2017 +0200

    Add an option that allows to shrink the content assist parser

commit 1ec8a2d
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:42:49 2017 +0200

    Fixed computation of the elements that should be parsed

    This helps to get rid of the NoSuchMethodExceptions when CA is invoked.

commit 8485c5b
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:39:45 2017 +0200

    Fixed bug in the computation of method names for CA

commit be7a786
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:35:07 2017 +0200

    Remove unnecessarily overridden method

commit ca1ec21
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 10:42:28 2017 +0200

    Refined content assist parser sanity test

commit dabb3ac
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Mon Jul 10 14:18:42 2017 +0200

    Added sanity check for generated code

commit cdcf877
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Mon Jul 10 14:18:11 2017 +0200

    Fixed typo in Javadoc

Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
commit a3c70cf
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Wed Jul 12 11:18:07 2017 +0200

    Minor reformatting

    Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>

commit 1e5d59a
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Wed Jul 12 11:11:25 2017 +0200

    Refactored tests

commit afc166e
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:46:21 2017 +0200

    Added more unit tests

commit 71cea9e
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:45:37 2017 +0200

    Fixed bug in template for parser

commit ba47ac8
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:44:18 2017 +0200

    Add an option that allows to shrink the content assist parser

commit 1ec8a2d
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:42:49 2017 +0200

    Fixed computation of the elements that should be parsed

    This helps to get rid of the NoSuchMethodExceptions when CA is invoked.

commit 8485c5b
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:39:45 2017 +0200

    Fixed bug in the computation of method names for CA

commit be7a786
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 15:35:07 2017 +0200

    Remove unnecessarily overridden method

commit ca1ec21
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Tue Jul 11 10:42:28 2017 +0200

    Refined content assist parser sanity test

commit dabb3ac
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Mon Jul 10 14:18:42 2017 +0200

    Added sanity check for generated code

commit cdcf877
Author: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Date:   Mon Jul 10 14:18:11 2017 +0200

    Fixed typo in Javadoc

Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
- Regenerated Unicode.xtext (eclipseGH-59)
- Extracted a few fragments to allow reuse
- Removed unused rules

Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
Copy link
Contributor

@jpilgrim jpilgrim left a comment

Choose a reason for hiding this comment

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

👍
Please to a squash commit. Do we have a github issue? If not, maybe create one (to have an ID).
Message formt: #xx: grammer improvements

@@ -292,8 +279,8 @@ ArrowExpression <In, Yield> returns ArrowFunction:
(
// we cannot use fragments here since we have to combine the terminals into a syntactic predicate
// also, we have to use explicit alternatives instead of making async optional due to a generation bug
Copy link
Contributor

Choose a reason for hiding this comment

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

comment is not true anymore

'}';

ArrowFunctionTypeExpression returns FunctionTypeExpression:
{FunctionTypeExpression} '(' TAnonymousFormalParameterList ')' '=>' returnTypeRef=PrimaryTypeExpression;
=>({FunctionTypeExpression} '(' TAnonymousFormalParameterList ')' '=>') returnTypeRef=PrimaryTypeExpression;
Copy link
Contributor

Choose a reason for hiding this comment

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

predicate will be propagated to caller

@mor-n4
Copy link
Contributor

mor-n4 commented Jul 18, 2017

I will look into resolving the conflict and merging this ...

# Conflicts:
#	plugins/org.eclipse.n4js.ui/src-gen/org/eclipse/n4js/ui/contentassist/antlr/N4JSParser.java
#	tests/org.eclipse.n4js.lang.tests/src/org/eclipse/n4js/tests/contentassist/CustomParserTest.xtend
@mor-n4
Copy link
Contributor

mor-n4 commented Jul 18, 2017

@szarnekow
Copy link
Contributor Author

Thank you very much @mor-n4 - looks like the build timeout in autoedit was spurious :(

@mor-n4
Copy link
Contributor

mor-n4 commented Jul 18, 2017

1st build is green; 2nd build hung after the initial build of n4js (without extensions).
We experienced this "hanging build problem" in other extended builds as well, so probably unrelated to this PR.
Still, I re-run the 2nd build, because the "hanging build problem" might occur only sporadically:
http://build-master.corp.numberfour.eu:8080/view/N4JS-Y/job/sebastian-n4js-extended/4/
(will appear once a build node is available)

@mor-n4
Copy link
Contributor

mor-n4 commented Jul 18, 2017

now both builds are green.

Many thanks @szarnekow !

Merging this now ...

@mor-n4
Copy link
Contributor

mor-n4 commented Jul 18, 2017

@jpilgrim I tried to create a GitHub issue, but could not assign it to Sebastian. So I just used the ID of this PR (should be sufficient).

@mor-n4 mor-n4 merged commit 9a3ad56 into eclipse:master Jul 18, 2017
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.

None yet

3 participants