feat: Preludes Until, String, Span, Line and EOL#133
Draft
phorward wants to merge 11 commits intotokay-lang:mainfrom
Draft
feat: Preludes Until, String, Span, Line and EOL#133phorward wants to merge 11 commits intotokay-lang:mainfrom
Until, String, Span, Line and EOL#133phorward wants to merge 11 commits intotokay-lang:mainfrom
Conversation
Started with until.tok draft. Currently not working due tokay-lang#130.
Member
Author
|
This PR is a dependency for #38 |
Member
Author
|
The original attempt of now works with #166 as expected 💯. |
phorward
added a commit
that referenced
this pull request
Oct 28, 2025
This feature allows for dynamic match and touch. It is needed by #133.
- Added documentation - Rebuilt prelude.rs
Until and String-preludesUntil, String, Span, Line and EOL
Open
Open
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the PR for implementing the built-in parselets
UntilStringSpanLine(Linebuilt-in #38)EOLStarted withUntil.tokdraft.Currently not working due #130.(meanwhile fixed by #166).The original definition from #10:
Until : @<P, Escape: Void>The Until-parselet parses data until a specific token occurs.
'"' Until<'"', Escape: '\\'> '"'parse strings like"Hello World"or with escape sequences like"Hello\nWorld"String: @<Start, End: Void, Escape: Void>INVALID.Until<Not<Char<A-Za-z_>]>>parse anything consisting not ofChar<A-Za-z_>Until<EOF>read all until EOFLinebuilt-in #38 refers to aLineparselet for matching input lines