gives a parse tree even though the last definition is not terminated properly