Search code examples
context-free-grammarebnfcontext-free-language

Solution to a joke related to EBNF


What do you think, what is the solution to the following problem related to EBNF?

The following message was seen on a bumper sticker: Stinks Syntax. What is the joke?

So far this I got to my mind:

r1 ::= in | yn
r2 ::= ks | x
Stinks Syntax ::= St r1 r2 | S r1 ta r2

Stynx Sintaks

Solution

  • The joke is that in English, the subject (syntax) must come before the verb (stinks). So that is a syntax error, which the bumper sticker's author is complaining about.