# Computing FIRST and FOLLOW

Given the following grammar with terminals $$VT=\{[,],a,b,c,+,-\}:$$

$$S \rightarrow [SX]|a$$

$$X \rightarrow +SY|Yb|\epsilon$$

$$Y \rightarrow -SXc|\epsilon$$

This should be the FIRST function:

$$first(S) = \{[,a\}$$

$$first(X) = \{\epsilon,+,-,b\}$$

$$first(Y) = \{\epsilon,-\}$$

What would the FOLLOW function be?