func Parse(tokens []string) (types.EntryPredicate, []string, error) {
	p, tokens, err := parseExpression(tokens)
	var entryP types.EntryPredicate
	if p != nil {
		entryP = types.ToEntryP(func(e types.Entry) bool {
			return p.IsSatisfiedBy(e.Metadata)
		})
		entryP.SetSchemaP(&entrySchemaPredicate{
			p: p.(Predicate).schemaP(),
		})
	}
	return entryP, tokens, err
}
The functionality here is tested in primary/meta_test.go
Parse is the meta primary's parse function.
package meta
import (
	"github.com/puppetlabs/wash/cmd/internal/find/parser/predicate"
	"github.com/puppetlabs/wash/cmd/internal/find/types"
)