%{ (* WHILEpar.grm: parser specification for a simple WHILE language *) (* TODO: implement expression type for PLUS *) %} %token INT %token PLUS %token EOF %start Main %type Main %% Main: INT EOF { $1 } ;