Skip to content

Discussion: Re-Implement code-generation for test-cases #204

Open
@rainij

Description

@rainij

I feel that the current code-generator for the test-cases (bin/generate) is really hard to read. I observed this in a previous PR (#193) where I had to adjust some things to make the code generator work again. I propose a re-implementation of the code-generator.

I would like to use this issue to decide if this would be a good move (as already said: I think so). Moreover I would like to use this issue to gather some ideas what could be done. How do other tracks generate their code (if they do so)?

In the past I used the python library jinja2 (https://palletsprojects.com/p/jinja/) for various things, including code generation for C++ (very simple code). So jinja2 might be an option and I have the feeling that this would achieve the goal that the code-generation is easier to maintain. On the other hand jinja2 is not a standard-package. Moreover, I have no deep experience in code generation and much more powerful/nicer/more elegant/more general solutions might exist.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions