Next: About this document ...
Up: BOTTOM-UP PARSING
Previous: Tomita's Parser
  Contents
The Cocke-Younger-Kasami parsing method is based on a bottom-up
approach to the partitioning of the input. In its most general form it
is identical to chart parsing.
The algorithm proceeds as follows:
- Phase 1
- For each symbol in the input string, construct a set of all those
non-terminals that can generate that symbol on its own. (This can be
calculated from the grammar)
- Phase 2
- For each adjacent pair of symbols, construct a set consisting of all
those non-terminals that can derive that pair, or some pairing of
their phase 1 non-terminals.
- Phase
- For each substring of the input of length , construct a set of
non-terminals which can generate that string, or some combonation of
the terminals in the string and any phase non-terminals (for any
).
We are finished if the start symbol is a phase non-terminal, where
is the string length.
Next: About this document ...
Up: BOTTOM-UP PARSING
Previous: Tomita's Parser
  Contents
James Power
2002-11-29