Parse a simple sentence.
- Compile the grammar file
make clean
make
- Print the parse tree
java DumpTree < sample.txt
Parse Tree generated for the sentence "I like time." is
Start
InputText
Sentence
NounPhrase
Pronoun : I
VerbPhrase
Verb : like
NounPhrase
CompoundNoun
Noun : time