Skip to content

Skip-Until #59

Description

@seandenigris

I had suggested this API addition to the original PP after repeatedly needing it:

	PPParser>>skipUntil 
		^ self negate plus, self ==> [ :nodes | nodes second ]. 

To be used like:

	parser2 := 'dd' asParser skipUntil.
	parser2 parse: 'kslkxjclkxjcdd'. "Returns 'dd’"

Do we now have this with island parsing, or could this be a useful addition?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions