code_generator

Crates.iocode_generator
lib.rscode_generator
version0.1.16
sourcesrc
created_at2024-07-22 20:59:51.352856
updated_at2024-10-15 16:21:59.531221
descriptionA code generator (Currently only targets C)
homepage
repositoryhttps://github.com/smithb21/code_generator
max_upload_size
id1311972
size54,224
Brendan Smith (smithb21)

documentation

https://docs.rs/code_generator/latest/code_generator/

README

Code Generator

  • This project is not stabilized. There will be many breaking changes before it is stabilized.
  • The goal of this project is to be able to generate code, and be able to easily change the formatting of the generated code as needed.
  • This library makes it easier to reuse code generation code since it is context aware.
  • This library currently only supports C, but I would like to support multiple target languages.

TODO:

  • Support more types of code generation (switch, do/while, etc.)
  • Support more languages. Currently the language is fairly hard coded. Not sure if that can be abstracted.
  • Unit tests
  • Documentation

Limitations

  • I don't believe it would be possible to work backwards with the existing architecture of the project. This library could not parse code, and do anything with it without a major rework.
Commit count: 24

cargo fmt