Cut and paste

Citation
G. Mecca et P. Atzeni, Cut and paste, J COMPUT SY, 58(3), 1999, pp. 453-482
Citations number
35
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF COMPUTER AND SYSTEM SCIENCES
ISSN journal
00220000 → ACNP
Volume
58
Issue
3
Year of publication
1999
Pages
453 - 482
Database
ISI
SICI code
0022-0000(199906)58:3<453:CAP>2.0.ZU;2-#
Abstract
The paper develops EDITOR, a language for manipulating semistructured docum ents, such as those typically available on the Web. EDITOR programs are bas ed on two simple ideas, taken from text editors: "search" instructions are used to select regions of interest in a document, and "cut & paste" instruc tions to restructure them. We study the expressive power and the complexity of these programs. We show that they are computationally complete, in the sense that any computable document restructuring can be expressed in EDITOR . We also study the complexity of a safe subclass of programs, showing that it captures exactly the class of polynomial-time restructurings. The langu age has been implemented in Java and is currently used in the ARANEUS proje ct as a basis for a wrapper-generation toolkit. (C) 1999 Academic Press.