Skip to content

Skip-Until #59

@seandenigris

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?

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