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

文章基本信息

  • 标题:Generating flex Lexical Scanners for Perl Parse::Yapp
  • 作者:Alberto Sim{\~o}es ; Nuno Ramos Carvalho ; Jos{\'e} Jo{\~a}o Almeida
  • 期刊名称:OASIcs : OpenAccess Series in Informatics
  • 电子版ISSN:2190-6807
  • 出版年度:2012
  • 卷号:21
  • 页码:41-50
  • DOI:10.4230/OASIcs.SLATE.2012.41
  • 出版社: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
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有