If you're unsure how to handle this case look at the ant files and the way this was handled for the other JavaCC grammars.