Re: Alternative Syntax for Regular Expressions?

dmitry@elros.cbb-automation.de (Dmitry Kazakov)
12 Oct 2001 00:20:22 -0400

          From comp.compilers

Related articles
Alternative Syntax for Regular Expressions? forrest@ce.berkeley.edu (Jon Forrest) (2001-10-10)
Re: Alternative Syntax for Regular Expressions? eeide@cs.utah.edu (Eric Eide) (2001-10-12)
Re: Alternative Syntax for Regular Expressions? joachim_d@gmx.de (Joachim Durchholz) (2001-10-12)
Re: Alternative Syntax for Regular Expressions? jenglish@flightlab.com (2001-10-12)
Re: Alternative Syntax for Regular Expressions? vannoord@let.rug.nl (2001-10-12)
Re: Alternative Syntax for Regular Expressions? dmitry@elros.cbb-automation.de (2001-10-12)
Re: Alternative Syntax for Regular Expressions? alexc@world.std.com (2001-10-13)
Re: Alternative Syntax for Regular Expressions? rboland@unb.ca (Ralph Boland) (2001-10-13)
Re: Alternative Syntax for Regular Expressions? spinoza1111@yahoo.com (2001-10-14)
Re: Alternative Syntax for Regular Expressions? eanders@cs.berkeley.edu (2001-10-16)
Re: Alternative Syntax for Regular Expressions? ralph@inputplus.demon.co.uk (2001-10-16)
Re: Alternative Syntax for Regular Expressions? spinoza1111@yahoo.com (2001-10-20)
[2 later articles]
| List of all articles for this month |

From: dmitry@elros.cbb-automation.de (Dmitry Kazakov)
Newsgroups: comp.compilers
Date: 12 Oct 2001 00:20:22 -0400
Organization: Compilers Central
References: 01-10-029
Keywords: lex
Posted-Date: 12 Oct 2001 00:20:22 EDT

On 10 Oct 2001 15:52:13 -0400, "Jon Forrest" <forrest@ce.berkeley.edu>
wrote:


>I've been looking at some pretty hairy regular expressions (in Perl)
>recently that are virtually unreadable. The thought crossed my mind
>that maybe there are some alternatives to classic regular expression
>syntax out there. Note that I'm only talking about the syntax - it's
>hard to beat the semantics of regular expressions.
>
>Does anybody know of anything?


1. GNAT.Spitbol (a full implementation of SNOBOL4 patterns in Ada 95):


You can find it in a distribution of the GNAT Ada 95 compiler (it is
freeware). This is a standard part of the GNAT Ada library.


2. Snobol-like patterns (C, C++, Ada 95 interfaces):


http://www.dmitry-kazakov.de/match/match.htm


SNOBOL patterns are extermely powerful. One can build a pattern that
matches syntactically correct programs and rejects others.


Regards,
Dmitry Kazakov


Post a followup to this message

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