Abstract
We present a linear-time algorithm to decide for any fixed deterministic context-free language L and input string w whether w is a suffix of some string in L. In contrast to a previously published technique, the decision procedure may be extended to produce syntactic structures (parses) without an increase in time complexity. We also show how this algorithm may be applied to process incorrect input in linear time.
Original language | English |
---|---|
Pages (from-to) | 524-554 |
Number of pages | 31 |
Journal | Journal of the Association for Computing Machinery |
Volume | 43 |
Issue number | 3 |
DOIs | |
Publication status | Published - May-1996 |
Keywords
- SYNTAX ERROR RECOVERY
- ALGORITHM