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

Investigate templating as a way to generate C files #3

Open
amberstarlight opened this issue Dec 28, 2021 · 0 comments
Open

Investigate templating as a way to generate C files #3

amberstarlight opened this issue Dec 28, 2021 · 0 comments

Comments

@amberstarlight
Copy link
Member

amberstarlight commented Dec 28, 2021

Currently, to generate C code, we would need to use string concatenation in our Typescript tool and write the result to a file. As a cleaner alternative, we should look into the ways to implement templating in a C file.

Some options could include:

  • the standard C preprocessor
  • a pre-preprocessor i.e. how mustache templating works
  • using our Typescript tool to generate the entire C file

Feel free to add more options and ideas as this evolves.

The outcome of this card would be a way (or multiple ways) to generate C files dynamically using templates.

Blocked by #7

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

No branches or pull requests

1 participant