2. Describe the list and what the grammar produces. Note that <empty>, <number>,
ID: 3638647 • Letter: 2
Question
2. Describe the list and what the grammar produces.Note that <empty>, <number>, and <identifier> are terminals defined as follows:
<empty> is an empty string, <number> is a numeric value, and <identifier> is like an
identifier name in C/Java, const is a terminal.
<constants> -> <const-decl> | <empty>
<const-decl> -> const <name> = <constant>;
| <const-decl> <name> = <constant>;
<constant> -> <number>
<name> -> <identifier>
Explanation / Answer
int,float,double,char,and such types