asm.js parser in C++