Added protocol grammar generator