Detailed Information

Cited 0 time in webofscience Cited 0 time in scopus
Metadata Downloads

Abstract LR-parsing

Authors
Doh, Kyung gooKim, HyunhaSchmidt, David A.
Issue Date
Nov-2011
Publisher
Springer Verlag
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
Citation
Formal Modeling: Actors; Open Systems, Biological Systems Essays Dedicated to Carolyn Talcott on the Occasion of Her 70th Birthday, v.7000 LNCS, pp 90 - 109
Pages
20
Indexed
SCIE
SCOPUS
Journal Title
Formal Modeling: Actors; Open Systems, Biological Systems Essays Dedicated to Carolyn Talcott on the Occasion of Her 70th Birthday
Volume
7000 LNCS
Start Page
90
End Page
109
URI
https://scholarworks.bwise.kr/erica/handle/2021.sw.erica/39166
DOI
10.1007/978-3-642-24933-4_6
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.
Files in This Item
Go to Link
Appears in
Collections
COLLEGE OF COMPUTING > SCHOOL OF COMPUTER SCIENCE > 1. Journal Articles

qrcode

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

Altmetrics

Total Views & Downloads

BROWSE