Exercise 35:

Identifiers with subscripts
Note: this exercise is taken from the Compilers subject at Barcelona School of Informatics (and is based on a similar one from Compilers: Principles, Techniques, and Tools).

Design a grammar to describe identifiers with subscripts. The set of tokens is {IDENT, NUMBER, [, ]}. For instance, all the following are valid inputs: Remarks:
Authors: Nil Mamano / Documentation:
To be able to submit you need to either log in, register, or become a guest.