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

Code Template Generation #2

Open
JohnnyJayJay opened this issue Jul 27, 2023 · 1 comment
Open

Code Template Generation #2

JohnnyJayJay opened this issue Jul 27, 2023 · 1 comment
Assignees

Comments

@JohnnyJayJay
Copy link
Contributor

To solve challenges, solutions have to read input from the standard input and write their output to the standard output (at least this seems to be the most sensible, uniform approach to doing I/O in this context). However, users likely want to focus on the conceptual challenge rather than how to parse the input from the command line, especially as this part can vary in difficulty between languages.

If challenges describe their input format, it should be possible to have a program that can take an input format definition and generate a solution template that takes care of input parsing. Essentially, this would be a compiler from input format definition to different languages. This compiler does not have to be perfect – it's fine if it cannot remove all the boilerplate writing, and it also doesn't have to support all languages right away. But it's something to get started on to improve the experience of participation.

@bristermitten
Copy link
Contributor

Working on this in https://github.com/codosseum-org/templatespiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants