Created
January 19, 2015 21:10
-
-
Save rpplusplus/162511c2264808b5ac70 to your computer and use it in GitHub Desktop.
EX5-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S-> a|^|(T) | |
T-> ST' | |
T'->,ST'|ε | |
First(S) = {a, ^, (} | |
First(T) = {a, ^, (} | |
First(T') = {, , ε} | |
Follow(S) = {, , $} | |
Follow(T) = {) , , , $} | |
Follow(T') = {, , $} | |
M[S, a]=S-> a|^|(T) | |
M[S, ^]=S-> a|^|(T) | |
M[S, (] = S-> a|^|(T) | |
M[T, a] = T-> ST' | |
M[T, ^] = T-> ST' | |
M[T, (] = T-> ST' | |
M[T', ,] = T'->,ST' | |
M[T', ,] = T'->ε | |
M[T', $] = T'->ε |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment