Sample grammar written using IDEA and ANTLR