The following program:
----- code ----- %language "Java" %start start %token TOKEN %% start : start '+' TOKEN | TOKEN ; %% ----- end code ----- yields the following result: x.y: fatal error: "lalr1.java": %defines does not make sense in Java There is no %defines in the code.