首页    期刊浏览 2024年11月27日 星期三
登录注册

文章基本信息

  • 标题:Generating flex Lexical Scanners for Perl Parse::Yapp
  • 本地全文:下载
  • 作者:Simões, Alberto ; Carvalho, Nuno Ramos ; Almeida, José João
  • 期刊名称:OASIcs : OpenAccess Series in Informatics
  • 电子版ISSN:2190-6807
  • 出版年度:2012
  • 卷号:21
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Perl is known for its versatile regular expressions. Nevertheless, using Perl regular expressions for creating fast lexical analyzer is not easy. As an alternative, the authors defend the automated generation of the lexical analyzer in a well known fast application (flex) based on a simple Perl definition in the syntactic analyzer. In this paper we extend the syntax used by Parse::Yapp, one of the most used parser generators for Perl, making the automatic generation of flex lexical scanners possible. We explain how this is performed and conclude with some benchmarks that show the relevance of the approach.
  • 关键词:flex; Perl; yapp; lexical analyzer
国家哲学社会科学文献中心版权所有