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

Add ellipsis operator to grammar #1

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Add ellipsis operator to grammar #1

merged 3 commits into from
Nov 1, 2024

Conversation

chrhansk
Copy link
Contributor

Hello,

I am excited about this project and its potential to improve the tooling around cython. I tried to get my hands dirty by adding support for the ellipsis in functions, which is present in any.pxd (among others):

cdef cppclass any:
    % ...
    T& emplace[T](...) except +
    % ...

As far as I can tell this decreases the number of parse errors from 174 to 172.

@b0o
Copy link
Owner

b0o commented Oct 31, 2024

Awesome, thank you! If you could fix the lint issues (just needs indentation) and add a test case or two to test/corpus/cython.txt, I will merge this.

@b0o b0o merged commit 0d1b690 into b0o:master Nov 1, 2024
1 of 4 checks passed
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