Misnomer

There are a lot of potential problems with names used within a grammar, mostly concerning nonterminal names and labels. One can blame names to be uncommunicative such as abc or pqr are much worse for the readability and maintainability of the grammar than if_statement, CompilationUnit or DIGIT, similarly to how this is a problem in programming in general. Also, names can be misleading and contain words that contradict the definition of the named entity.

Reference

Mats Stijlaart and Vadim Zaytsev. 2017. Towards a taxonomy of grammar smells. In Proceedings of the 10th ACM SIGPLAN International Conference on Software Language Engineering (SLE 2017). ACM, New York, NY, USA, 43-54.


Convention Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.