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

Per-generation repetition avoidance in choices #5

Open
mootpointer opened this issue Mar 7, 2016 · 0 comments
Open

Per-generation repetition avoidance in choices #5

mootpointer opened this issue Mar 7, 2016 · 0 comments

Comments

@mootpointer
Copy link
Contributor

It would be good to ensure that if we have a series of tokens which may be used several times within the generation of a grammar that we avoid repetition, or at least aim to space it out.

This could be implemented as a layer on top of weighted choices (#2), by reducing the weights of choices by some factor as we use them.

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