new methods describing grammar in parser2