Use stack instead of heap for return value of parsing