Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A proposed new interface for skipping characters automatically#464

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
peteraldous wants to merge1 commit intoscala:main
base:main
Choose a base branch
Loading
frompeteraldous:skips

Conversation

peteraldous
Copy link

I implemented this new interface for Scanners but haven't yet implemented it for RegexParsers; implementing it in the obvious way for RegexParsers would create performance issues (likely making a linear process quadratic). Instead, I've pushed this to start a discussion about whether this interface is something the maintainers would like to see implemented.

The term whitespace is being used somewhat generously here; comments are not whitespace but are skipped, just as whitespace is. I renamed theapply method toparse so thatapply could be called as before but that the desired skipping behavior would occur throughout. This has the added benefit of adding explicit meaning to theparse method, which subclasses will implement.

This PR begins to address#320 and#25

…emented for Scanners but not yet for RegexParsers
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@peteraldous

[8]ページ先頭

©2009-2025 Movatter.jp