Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

NewCompileError/2014 08 16: Difference between revisions

From ZeroWiki
imported>linflus
No edit summary
imported>linflus
No edit summary
Line 1: Line 1:
Sentence ::= Subject Verb Object .
Sentence ::= Subject Verb Object ''.''
Subject ::= I | a Noun | the Noun
Subject ::= ''I'' | ''a'' Noun | ''the'' Noun
Object ::= me | a Noun | the Noun | ε
Object ::= ''me'' | ''a'' Noun | ''the'' Noun | ε
Noun ::= cat | mat | rat
Noun ::= ''cat'' | ''mat'' | ''rat''
Verb ::= like | is | see | sees | go
Verb ::= ''like'' | ''is'' | ''see'' | ''sees'' | ''go''


FIRST(Sentence) = {I, a, the}
FIRST(Sentence) = {I, a, the}
Line 10: Line 10:
FIRST(Object) = {me, a, the, ε}
FIRST(Object) = {me, a, the, ε}
FIRST(Noun) = {cat, mat, rat}
FIRST(Noun) = {cat, mat, rat}
----
----
[[NewCompileError]]
[[NewCompileError]]



Revision as of 07:47, 16 August 2014

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

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}


NewCompileError