Adapted Earley parser with OO versions of Chart and Item