Formatted the grammar in the "Rascal" style
Made the grammar actually compilable
Updated filter code to match camelcased production names