Sentence ::= Subject Verb Object .
Subject ::= I | a Noun | the Noun
Object ::= me | a Noun | the Noun | ε
Noun ::= cat | mat | rat
Verb ::= like | is | see | sees | go
Subject ::= I | a Noun | the Noun
Object ::= me | a Noun | the Noun | ε
Noun ::= cat | mat | rat
Verb ::= like | is | see | sees | go
FIRST(Sentence) = {I, a, the}
FIRST(Subject) = {I, a, the}
FIRST(Verb) = {like, is, see, sees, go}
FIRST(Object) = {me, a, the, ε}
FIRST(Noun) = {cat, mat, rat}
FIRST(Subject) = {I, a, the}
FIRST(Verb) = {like, is, see, sees, go}
FIRST(Object) = {me, a, the, ε}
FIRST(Noun) = {cat, mat, rat}
FOLLOW(Sentence) =
FOLLOW(Subject) = {like, is, see, sees, go}
FOLLOW(Verb) = {me, a, the, .}
FOLLOW(Object) = {.}
FOLLOW(Noun) = FOLLOW(Subject) ∪ FOLLOW(Object)
FOLLOW(Subject) = {like, is, see, sees, go}
FOLLOW(Verb) = {me, a, the, .}
FOLLOW(Object) = {.}
FOLLOW(Noun) = FOLLOW(Subject) ∪ FOLLOW(Object)