Skip to main content
Log in

Efficiently building a parse tree from a regular expression

  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract.

We show in this paper that parsing with regular expressions instead of context-free grammars, when it is possible, is desirable. We present efficient algorithms for performing different tasks that concern parsing: producing the external representation and the internal representation of parse trees; producing all possible parse trees or a single one. Each of our algorithms 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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received: 21 October 1997 / 30 May 2000

Rights and permissions

Reprints and permissions

About this article

Cite this article

Dubé, D., Feeley, M. Efficiently building a parse tree from a regular expression. Acta Informatica 37, 121–144 (2000). https://doi.org/10.1007/s002360000037

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s002360000037

Keywords

Navigation