AUTOMATA-BASED PARSINGIN DYNAMIC PROGRAMMINGFOR LINEAR INDEXED GRAMMARSMiguel