Grammars
| > | P:=table([
Sentence={[NounPhase,VerbPhase]}, NounPhase={ComplexNoun,[ComplexNoun,PrepPhase]}, VerbPhase={ComplexVerb,[ComplexVerb,PrepPhase]}, PrepPhase={[Prep,ComplexNoun]}, ComplexNoun={[Article,Noun]}, ComplexVerb={Verb,[Verb, NounPhase]}, Article={"a","the"}, Noun={"lady","boy","girl","flower"}, Verb={"smells","touches","likes","sees"}, Prep={"with"}]): cfg02:=mkCFG({Sentence, NounPhase, VerbPhase, PrepPhase, ComplexNoun, ComplexVerb, Article, Noun, Verb, Prep},{"a","the","lady","boy","girl","flower","smells","touches","likes","sees","with"},Sentence,op(P)); |
| (17.1.3.1) |
| > | parseCYK(cfg02,["the", "lady", "smells", "a", "flower", "with", "a", "girl"],table=true,tree=true); |
![]() |