Move Jison parsing out of AST into helpers