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

exercise generator #64

Open
ilmanzo opened this issue Apr 18, 2018 · 3 comments
Open

exercise generator #64

ilmanzo opened this issue Apr 18, 2018 · 3 comments
Labels
x:knowledge/elementary Little Exercism knowledge required x:module/generator Work on Exercise generators

Comments

@ilmanzo
Copy link

ilmanzo commented Apr 18, 2018

Hi, other tracks have a code generator that reads problem specifications and creates exercise test cases reading data from a common source. Do you think it could be useful for D language track ?

@BNAndras
Copy link
Member

BNAndras commented Mar 8, 2024

@ilmanzo, if you're still interested, that would be very helpful. https://exercism.org/docs/building/configlet can sync the metadata and docs for an exercise provided it's in the track config. There's a newer configlet create --practice-exercise <exercise-slug> that adds an exercise to the config, syncs the data, and creates empty files specified in the track config's files array. So the test generator can run that command and then replace the empty files with the generated ones.

@BNAndras BNAndras added x:knowledge/elementary Little Exercism knowledge required x:module/generator Work on Exercise generators labels Mar 8, 2024
@ilmanzo
Copy link
Author

ilmanzo commented Mar 9, 2024

well it was 6 years ago, but yes; the original idea was to have something similar to Go track where each exercise is generated by a program that merges data from a template with the actual D code + json test cases. My D knowledge needs a bit of refreshment but if it still makes sense with the current exercism architecture, I can start working on a proof of concept.

@ilmanzo
Copy link
Author

ilmanzo commented Mar 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:knowledge/elementary Little Exercism knowledge required x:module/generator Work on Exercise generators
Projects
None yet
Development

No branches or pull requests

2 participants