3.1 Example 1

Let us consider the following grammar for an integer. Let us define Σ = {0,1,2,3,4,5,6,7,8,9,+,-}, N = {S,D,I,J}. Let S be the start symbol.

Let us see how this works. Our first string is -562.