0

I have this grammar that I want to describe in english. I understand how to describe most grammar but I have never come across one that uses commas between non-terminals. My guess is that it means "AND" but I am not sure and I need some help. This is the grammar:

<S> => <A>,<B>,<C>
<A> => 0<A>|a
<B> => 1<B>|b 
<C> => 2<C>|c
Jeff
  • 165
  • 6
  • 3
    There's no telling for sure without a grammar for the grammar language itself :) - Having said that, though, don't you think those commas are simply literals (terminals) here? You know, so that e.g. `a,b,c` is a valid statement in this language. – 500 - Internal Server Error Feb 11 '21 at 12:17

0 Answers0