Current Forum: Homework 5 - Parts 1 and 2 |
Date: Fri Nov 2 2001 8:10 pm |
Author: Brands, Marc C. <brands@cmu.edu> |
Subject: 10 lines?? I only needed 3 |
|
|
<< //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // // MISSING CODE! // // What is missing here is code to read in the tokens from // the tokenStream, run them through the finite-state machine // defined by the delta and action tables, thereby building // up the iterator of PageElements. // // Correct solutions should require only a few (< 10) lines of code. // //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >>
My Output:
java WebReader http://www.cs.cmu.edu/~petel
word: peter word: lee word: peter word: lee word: professor word: and word: associate word: dean word: for word: undergraduate word: education link: http://www.cs.cmu.edu/ word: school word: of word: computer word: science link: http://www.cmu.edu/ word: carnegie word: mellon word: university link: http://www.cs.cmu.edu/contact.html word: contact word: information word: current word: research word: projects link: http://www.cs.cmu.edu/afs/cs/project/concert/www word: the word: concert word: project link: http://www.cs.cmu.edu/~fox word: the word: fox word: project link: http://www.cs.cmu.edu/papers/pcc/pcc.html word: information word: about word: proof word: carrying word: code word: aka word: self word: certified word: code link: http://www.cs.cmu.edu/afs/andrew/course/15/211/www/ word: 15 word: 211 word: fundamental word: data word: structures word: and word: algorithms word: course word: direct link: http://www.cmu.edu/blackboard word: link word: to word: the word: blackboard word: site link: http://www.cs.cmu.edu/students.html word: some word: of word: my word: current word: and word: former word: students link: http://www.google.com/ word: google word: com link: mailto:petel@cs.cmu.edu word: peter word: lee@cs word: cmu word: edu
76 total page elements retrieved.
|
|