153 0

Abstract LR-parsing

Title
Abstract LR-parsing
Author
도경구
Keywords
Data type; Finite-state automata; User input; Formal languages; Abstracting; Semantics; Automata theory; Computational linguistics; Analysis techniques; Document languages; Attribute grammars; Abstract interpretations; Test expressions; Biological systems
Issue Date
2011-11
Publisher
Springer Verlag
Citation
Lecture Notes in Computer Science, v. 7000 LNCS, Page. 90-109
Abstract
We explain and illustrate abstract parsing, a static-analysis technique based on abstract interpretation, LR-parsing, and partial evaluation for validating PHP-like scripts that generate HTML/XML-style documents. A validated script is guaranteed to generate documents that are well formed with respect to the document language's LR(k)-grammar. In this way, abstract parsing resembles compiler data-type checking: a validated script will not go wrong and output a malformed, dynamically generated document. After presenting abstract parsing for LR(k)-grammars, we handle these important extensions: (i) String-replacement operations are analyzed by composing the finite-state automaton defined by a string replacement with the finite-state control of the LR(k)-parser. (ii) Conditional-test expressions are implemented by filter automata, which are also composed with the parser's finite-state control. (iii) Dynamically supplied and potentially malicious user input is predicted by characterizing it with an LR(k)-grammar and analyzing the strings generated by the grammar. (iv) Synthesized-attribute grammars are employed to calculate the semantics of the dynamically generated documents. © 2011 Springer-Verlag Berlin Heidelberg.
URI
https://link.springer.com/chapter/10.1007/978-3-642-24933-4_6https://repository.hanyang.ac.kr/handle/20.500.11754/185694
ISSN
0302-9743;1611-3349
DOI
10.1007/978-3-642-24933-4_6
Appears in Collections:
COLLEGE OF COMPUTING[E](소프트웨어융합대학) > COMPUTER SCIENCE(소프트웨어학부) > Articles
Files in This Item:
There are no files associated with this item.
Export
RIS (EndNote)
XLS (Excel)
XML


qrcode

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.

BROWSE