[#33] Huge refactoring for parser to use linked lists instead of fixed arrays.