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

IFastForward #163

Open
sebastienros opened this issue Nov 19, 2024 · 0 comments
Open

IFastForward #163

sebastienros opened this issue Nov 19, 2024 · 0 comments

Comments

@sebastienros
Copy link
Owner

When parser can return the next occurrence of their pattern, this could be used by TextBefore (check others) to skip a block of characters. For instance AnyOf using SearchValues we can find the next occurrence of any char in the list. TextBefore(Char('c')) or TextBefore(AnyOf("(){}"))

interface IFastForward
{
  bool TrySeek(ParserContext context, out var index);
}

Returns -1 if there are no matches.

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

No branches or pull requests

1 participant