The only thing stopping pegs from being used at compiletime seems to be that it uses a cstring for it's buffer and accesses the \0 character which causes an index error at compiletime and is ignored at runtime.
How would I go about disabling index checks in the pegs.nim file? I tried {.push checks: off} {.pop} and it didn't work. That seems to apply only to runtime checks.