spmd_compile: add a parser