Added some of the functionality to the new bison parser
compiles, lots of warnings