0
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      V-Star: Learning Visibly Pushdown Grammars from Program Inputs

      Preprint
      ,

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          Accurate description of program inputs remains a critical challenge in the field of programming languages. Active learning, as a well-established field, achieves exact learning for regular languages. We offer an innovative grammar inference tool, V-Star, based on the active learning of visibly pushdown automata. V-Star deduces nesting structures of program input languages from sample inputs, employing a novel inference mechanism based on nested patterns. This mechanism identifies token boundaries and converts languages such as XML documents into VPLs. We then adapted Angluin's L-Star, an exact learning algorithm, for VPA learning, which improves the precision of our tool. Our evaluation demonstrates that V-Star effectively and efficiently learns a variety of practical grammars, including S-Expressions, JSON, and XML, and outperforms other state-of-the-art tools.

          Related collections

          Author and article information

          Journal
          05 April 2024
          Article
          10.1145/3656458
          2404.04201
          ce2f48ec-d9db-4ae8-8038-dad36c010ad8

          http://arxiv.org/licenses/nonexclusive-distrib/1.0/

          History
          Custom metadata
          PLDI '24
          cs.PL cs.FL

          Theoretical computer science,Programming languages
          Theoretical computer science, Programming languages

          Comments

          Comment on this article