Shotgun

Shotgun parsing is a term used in cybersecurity to represent an architecture where a proper parser is substituted with lightweight treatment (by regular expression matches and direct string manipulation). The name comes from the fact that in a pipeline of tools built with such defects, the problems quickly multiply with each step when the receiver is applying Postel’s Law in trying to be relaxed with its input, and is known to cause all kinds of subtle bugs in software language processing.

We define the Shotgun smell as a situation when the grammatical bind is too loose on one of its ends.

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.


Parsing Smells

Home

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