Skip to content

Suggestion: use shift-validator to avoid early errors #21

@bakkot

Description

@bakkot

I saw in the readme

Ability to generate code without any early errors.

The fact that shift-fuzzer doesn't do this already is a bug, but not one I'm likely to get around to fixing for a while yet. In the mean time, though, you can use shift-validator to confirm that the generated ASTs represent real programs. Its default export tells you if an AST is valid. If you generate an invalid one, you can just re-roll.

Depending on the setup this might be slower than just letting the consumer choke the invalid programs, but it's an option to consider.

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