Had to comment out line "extern YYSTYPE yylval" to get everything to build properly, not sure why