grammar Calc { token ws { \s* } # rest of your code here without any modifications