首页> 外文期刊>Acta Informatica >Efficiently building a parse tree from a regular expression
【24h】

Efficiently building a parse tree from a regular expression

机译:从正则表达式高效构建解析树

获取原文
获取原文并翻译 | 示例

摘要

We show in this paper that parsing with regular expressions in- stead of context-free grammars, when it is possible, is desirable. We present efficient algorithms for performing different tasks that concern parsing: pro- ducing the external representation and the internal representation of parse trees; producing all possible parse trees or a single one. Each of our al- gorithms to produce a parse tree from an input string has an optimal time complexity, linear with the length of the string. Moreover, ambiguous regular expressions can be used.
机译:我们在本文中表明,在可能的情况下,希望使用正则表达式而不是上下文无关的语法进行解析。我们提出了用于执行与解析有关的不同任务的高效算法:生成解析树的外部表示和内部表示;产生所有可能的解析树或一个。我们从输入字符串产生解析树的每个算法都有最佳的时间复杂度,与字符串的长度成线性关系。此外,可以使用歧义的正则表达式。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号