glennj
April 20, 2026, 9:05pm
1
Based on the 8 implementations. This provides the input as a list of strings for the student to parse. There are some error cases (not as many as Elixir though)
Most implementations provide the input as a series of class instantiations and method calls.
canonical-data.json
{
"exercise": "dot-dsl",
"comments": [
"The inputs and outputs are represented as arrays of strings to",
"improve readability in this JSON file.",
"Your track may choose whether to present the input as a single",
"string (concatenating all the lines) or as the list."
],
"cases": [
{
This file has been truncated. show original
2 Likes
IsaacG
April 20, 2026, 9:24pm
2
Sounds good to me.
Thoughts on grouping the cased into valid and invalid cases?
glennj
April 20, 2026, 9:52pm
3
Yeah, they could all go together.
UPDATE: gist updated with new file
oxe-b
April 20, 2026, 11:04pm
4
The data looks fine! This will come in handy, as I was just looking into adding this exercise to the Lean track.
IsaacG
April 21, 2026, 12:28am
5
The Go track doesn’t have this exercise and I didn’t add it since there was no canonical data. Once we got data, I’ll be able to add the exercise
glennj
April 21, 2026, 1:12am
6
I’ll create the PR as soon as another maintainer speaks up.
Seems useful and generator-friendly. I never tried to do this exercise before but it looks interesting
IsaacG
April 21, 2026, 6:10am
8
FWIW here’s a working test-runner and implementation (Python): https://gist.github.com/IsaacG/85e1a9d80ce7eb35740e9b57f7212d91
1 Like
glennj
April 21, 2026, 11:56am
9
2 Likes