A Python script to generate arrays for use with C/C++ and any other language that uses similar syntax
| LICENSES | ||
| arraygen.py | ||
| README.md | ||
ArrayGen
What?
This is a little script to help automate the generation of sometimes very tedious to create arrays in C/C++. It started out because I wanted to generate BCD lookup tables for a program, and since then has expanded. I recently added the ability to generate lookup tables to unscramble bytes that have bits in the wrong position. This can be a really annoying thing to figure out by hand, but creating a simple lookup table is fast and solves the problem by trading a tiny amount of ROM for speed and simplicity.
If there are other types of sequences you'd like to generate, just make a PR or file an issue!