This is a modified version of the CRC algorithms by Lammert Bies. It supports more algorithms and has been ported to several languages.
It's also useful for learning how to do hexadecimal calculations and bitwise operations in various programming languages.
Disclaimer:
These test programs demonstrate the calculation of CRC.
I made these translation with a basic knowledge of each language. They may or may not be appropriately formatted / secured / robustified / idiot proofed or...
The Language Machine is a toolkit for language and grammar: a library, main program, and self-hosted rule compilers with one frontend. The system is easy to use. It directly implements unrestricted rule-based grammars with actions and external interfaces.