Type Inference for Regular Expression Pattern Matching

被引:0
|
作者
Marin, Mircea [1 ]
Craciun, Adrian [2 ]
机构
[1] Univ Tsukuba, Grad Sch Syst & Informat Engn, Tsukuba, Ibaraki 3058573, Japan
[2] West Univ Timisoara, Dept Comp Sci, Timisoara 300223, Romania
关键词
type inference; hedge automata; patterns; XML;
D O I
10.1109/SYNASC.2010.20
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
An important feature of statically typed XML programming languages is the type inference of variables in regular expression patterns, when matching is performed on input of a known type. At least, such an algorithm must be be simple, local, and locally precise. In this paper we investigate the possibility to go beyond local type inference, and propose an algorithm to compute the precise type of the tuple of all variables in a regular expression pattern. Our algorithm relies on notions and algorithms from the factorization theory of regular hedge languages.
引用
收藏
页码:366 / 373
页数:8
相关论文
共 50 条
  • [1] Regular expression pattern matching for XML
    Hosoya, H
    Pierce, BC
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2003, 13 : 961 - 1004
  • [2] Regular expression pattern matching for XML
    Hosoya, H
    Pierce, B
    ACM SIGPLAN NOTICES, 2001, 36 (03) : 67 - 80
  • [3] Type inference for unique pattern matching
    Vansummeren, Stijn
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2006, 28 (03): : 389 - 428
  • [4] Streaming Regular Expression Membership and Pattern Matching
    Dudek, Bartlomiej
    Gawrychowski, Pawel
    Gourdel, Garance
    Starikovskaya, Tatiana
    PROCEEDINGS OF THE 2022 ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, SODA, 2022, : 670 - 694
  • [5] COMPACT FUNCTION FOR REGULAR EXPRESSION PATTERN MATCHING
    RICHARDS, M
    SOFTWARE-PRACTICE & EXPERIENCE, 1979, 9 (07): : 527 - 534
  • [6] Type inference with extended pattern matching and subtypes
    Jategaonkar, Lalita A.
    Mitchell, John C.
    Fundamenta Informaticae, 1993, 19 (1-2) : 127 - 165
  • [7] Optimization of pattern matching circuits for, regular expression on FPGA
    Lin, Cheng-Hung
    Huang, Chih-Tsun
    Jiang, Chang-Ping
    Chang, Shih-Chieh
    IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2007, 15 (12) : 1303 - 1310
  • [8] Four Russians algorithm for regular expression pattern matching
    Myers, Gene
    Journal of the ACM, 1992, 39 (02): : 430 - 448
  • [9] Regular Expression Pattern Matching Supporting Constrained Repetitions
    Yun, SangKyun
    Lee, KyuHee
    RECONFIGURABLE COMPUTING: ARCHITECTURES, TOOLS AND APPLICATIONS, 2009, 5453 : 300 - 305
  • [10] Optimization of regular expression pattern matching circuits on FPGA
    Lin, Cheng-Hung
    Huang, Chih-Tsun
    Jiang, Chang-Ping
    Chang, Shih-Chieh
    2006 DESIGN AUTOMATION AND TEST IN EUROPE, VOLS 1-3, PROCEEDINGS, 2006, : 1347 - +