Skip to content

Conversation

@eed3si9n
Copy link
Collaborator

@eed3si9n eed3si9n commented Jan 9, 2023

This is on top of #106

Problem

Currently we use $.expression everywhere even though it often
requires much narrower set of expressions.

Solution

Now that we've gained some memory budget, this adds
_simple_expression, mirroring the EBNF, and adjusts
infix_expression etc to use narrower choice of expression tokens.
With this change, the smoke test for Scala 2 library jumps to 95%.

Problem
-------
Currently we use `$.expression` everywhere even though it often
requires much narrower set of expressions.

Solution
--------
Now that we've gained some memory budget, this adds
`_simple_expression`, mirroring the EBNF, and adjusts
`infix_expression` etc to use narrower choice of expression tokens.
With this change, the smoke test for Scala 2 library jumps to 95%.
Comment on lines +5 to +7
SCALA_SCALA_LIBRARY_EXPECTED=95
SCALA_SCALA_COMPILER_EXPECTED=66
DOTTY_COMPILER_EXPECTED=56
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

95, 66, 56.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome to see this keep going up.

@eed3si9n eed3si9n mentioned this pull request Jan 9, 2023
Copy link
Collaborator

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

This looks good. LGTM!

Comment on lines +5 to +7
SCALA_SCALA_LIBRARY_EXPECTED=95
SCALA_SCALA_COMPILER_EXPECTED=66
DOTTY_COMPILER_EXPECTED=56
Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome to see this keep going up.

@ckipp01 ckipp01 merged commit 415f18a into tree-sitter:master Jan 9, 2023
@eed3si9n eed3si9n deleted the wip/richer_expression branch January 9, 2023 15:59
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.

2 participants