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

make grammar a bit more honest #21655

Merged
merged 4 commits into from
Apr 14, 2023
Merged

make grammar a bit more honest #21655

merged 4 commits into from
Apr 14, 2023

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Apr 12, 2023

refs #19802

static is not an operator in any capacity (maybe it was before), and ifExpr actually parses stmt.

symbol only allows KEYW when parsing the RHS of dotlike expressions, so this KEYW is removed from symbol and moved to symbolOrKeyword. There is also a version that allows nil but this is only used by distinct with which is not documented at all (and also basically never parses, distinct enum with foo works but not distinct T with foo).

@metagn metagn changed the title test if expr parsing expr make grammar a bit more honest Apr 12, 2023
@metagn metagn marked this pull request as ready for review April 12, 2023 15:15
@Araq Araq merged commit 2a0d8a9 into nim-lang:devel Apr 14, 2023
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 2a0d8a9

Hint: mm: orc; opt: speed; options: -d:release
166803 lines; 8.556s; 612.586MiB peakmem

capocasa pushed a commit to capocasa/Nim that referenced this pull request May 15, 2023
* test if expr parsing expr

refs nim-lang#19802

* in any case

* just be honest

* fix symbol/keyword issue too
capocasa pushed a commit to capocasa/Nim that referenced this pull request May 16, 2023
* test if expr parsing expr

refs nim-lang#19802

* in any case

* just be honest

* fix symbol/keyword issue too
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
* test if expr parsing expr

refs nim-lang#19802

* in any case

* just be honest

* fix symbol/keyword issue too
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