Re: tips for writing regular expression interpreter/compiler?

Jeff Kenton <jeffrey.kenton@comcast.net>
2 Dec 2005 20:22:52 -0500

          From comp.compilers

Related articles
tips for writing regular expression interpreter/compiler? derekhaas@gmail.com (Derek Haas) (2005-11-26)
Re: tips for writing regular expression interpreter/compiler? jburgy@gmail.com (2005-11-30)
Re: tips for writing regular expression interpreter/compiler? rsc@swtch.com (Russ Cox) (2005-12-02)
Re: tips for writing regular expression interpreter/compiler? jeffrey.kenton@comcast.net (Jeff Kenton) (2005-12-02)
Re: tips for writing regular expression interpreter/compiler? mefrill@yandex.ru (mefrill) (2005-12-02)
Re: tips for writing regular expression interpreter/compiler? markwh04@yahoo.com (2005-12-23)
Re: tips for writing regular expression interpreter/compiler? markwh04@yahoo.com (2005-12-23)
Re: tips for writing regular expression interpreter/compiler? rsc@swtch.com (Russ Cox) (2005-12-23)
| List of all articles for this month |

From: Jeff Kenton <jeffrey.kenton@comcast.net>
Newsgroups: comp.compilers
Date: 2 Dec 2005 20:22:52 -0500
Organization: Compilers Central
References: 05-11-119 05-11-141
Keywords: lex
Posted-Date: 02 Dec 2005 20:22:52 EST

jburgy@gmail.com wrote:
> [This is the original regular expression paper, describing the
> search in qed, a predececessor to Unix editors ed, ex and vi. -John]


As John notes, this is the origianl article on regular expressions by
Ken Thompson of Unix fame. Be warned that the algorithm is presented
in IBM 7094 assembly language, and compiles expressions so that each
assembly language label is effectively a state in the state machine.
It makes extensive use of the 7094's wide range of instructions
designed explicitly for writing self-modifying code, which was
standard practice back then. I'm not sure it's entirely worth reading
without a copy of the 7094 manual at hand, but it's a really good
article.


jeff



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.