Grammar-Based String Refinement Types

被引:0
|
作者
Zhu, Fengmin [1 ]
机构
[1] CISPA Helmholtz Ctr Informat Secur, Saarbrucken, Germany
关键词
Refinement types; context-free grammars; type checking; subtyping; constraint solving;
D O I
10.1109/ICSE-COMPANION58688.2023.00072
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programmers use strings to represent variates of data that contain internal structure or syntax. However, existing mainstream programming languages do not provide users with means to further narrow down the set of valid values for a string. An invalid string input may cause runtime errors or even severe security vulnerabilities. To address that, this paper presents a Ph.D. research proposal on the type checking of grammar-based string refinement types, a kind of fine-grained types for specifying the set of valid string values via grammar. The string refinement type system uses subtyping to capture the inclusion relation between the languages of grammars. Based on that, we follow a well-known bidirectional type checking framework to combine the checking and inference of string refinement types into one. Evaluations on real-world codebases will be conducted to measure the practicality of this approach.
引用
收藏
页码:267 / 269
页数:3
相关论文
共 50 条
  • [31] On vocabulary size of grammar-based codes
    Debowski, Lukasz
    [J]. 2007 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY PROCEEDINGS, VOLS 1-7, 2007, : 91 - +
  • [32] A Grammar-based model for the Semantic web
    Jung, Hyosook
    Park, Seongbin
    [J]. COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2011, 8 (01) : 73 - 100
  • [33] On the complexity of optimal grammar-based compression
    Arpe, Jan
    Reischuk, R. diger
    [J]. DCC 2006: DATA COMPRESSION CONFERENCE, PROCEEDINGS, 2006, : 173 - +
  • [34] Grammar-Based Compression in a Streaming Model
    Gagie, Travis
    Gawrychowski, Pawel
    [J]. LANGUAGE AND AUTOMATA THEORY AND APPLICATIONS, 2010, 6031 : 273 - +
  • [35] Grammar-based design of embedded systems
    Öberg, J
    O'Nils, M
    Jantsch, A
    Postula, A
    Hemani, A
    [J]. JOURNAL OF SYSTEMS ARCHITECTURE, 2001, 47 (3-4) : 225 - 240
  • [36] AXECHOP:: A grammar-based compressor for XML
    Leighton, G
    Diamond, J
    Müldner, T
    [J]. DCC 2005: DATA COMPRESSION CONFERENCE, PROCEEDINGS, 2005, : 467 - 467
  • [37] Grammar-Based Genetic Programming for Timetabling
    El Den, Mohamed Bader
    Poli, Riccardo
    [J]. 2009 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION, VOLS 1-5, 2009, : 2532 - +
  • [38] Approximation algorithms for grammar-based compression
    Lehman, E
    Shelat, A
    [J]. PROCEEDINGS OF THE THIRTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2002, : 205 - 212
  • [39] Probabilistic Grammar-based Deep Neuroevolution
    Wong, Pak-Kan
    Wong, Man-Leung
    Leung, Kwong-Sak
    [J]. PROCEEDINGS OF THE 2019 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE COMPANION (GECCCO'19 COMPANION), 2019, : 87 - 88
  • [40] Applying Grammar-Based Compression to RDF
    Roder, Michael
    Frerk, Philip
    Conrads, Felix
    Ngomo, Axel-Cyrille Ngonga
    [J]. SEMANTIC WEB, ESWC 2021, 2021, 12731 : 93 - 108