A Python script to generate arrays for use with C/C++ and any other language that uses similar syntax
Find a file
2025-12-29 14:28:40 -05:00
LICENSES Making project compliant with REUSE specification 2025-12-29 14:28:40 -05:00
arraygen.py Making project compliant with REUSE specification 2025-12-29 14:28:40 -05:00
README.md Making project compliant with REUSE specification 2025-12-29 14:28:40 -05:00

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!