I found out that the problem with these warnings was because I had errors in my grammar and I had forgotten to add quotes around [ ] in some cases. Like:
[ example_non_terminal ]
It was taking example_non_terminal as a character set. A number of these were causing the problem. The correct grammar should have been:
'[' example_non_terminal ']'