libqasm
library for handling cQASM files
func-gen

func-gen is a simple code generator (always the same output) for the various functions usable within expressions within cQASM.

A generator is used because there is a very high degree of repetition in this code. For example, as you might imagine, the code for the "sin()" function is the same as the code for "cos()", aside from a different cmath function being called when constant propagation is performed. There are already 12 of these just for trigonometry on reals, not to mention duplication for complex numbers, and so on.

Adding a simple function with a similar prototype to what already exists should be fairly easy through copypasting existing code, even within the generator. The generator code isn't very complicated.