options { JAVA_UNICODE_ESCAPE = true; } PARSER_BEGIN(MiniJavaParser) public class MiniJavaParser {} PARSER_END(MiniJavaParser) // Insert a specification of a lexical analysis here. // The following is a simple grammar that will allow you // to test the generated lexer. void Goal() : {} { ( MiniJavaToken() )* } void MiniJavaToken(): {} { "class" | | "{" | "public" | "static" | "void" | "main" | "(" | "String" | "[" | "]" | ")" | "}" | "extends" | ";" | "return" | "," | "int" | "boolean" | "=" | "if" | "else" | "while" | "System.out.println" | "&&" | "<" | "+" | "-" | "*" | "." | "length" | | "true" | "false" | "this" | "new" | "!" }