TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mike Brenner <[log in to unmask]>
Mon, 5 Jan 1998 14:57:21 -0500
text/plain (25 lines)
Bruce > ... GNAT has a package that will
      > give you SPITBOL patterns, which are a superset of what Perl gives
      > you (GNAT.Spitbol.Patterns)...

Sorry, SPITBOL patterns are not a superset of awk/Perl/un*x/cshell
regular expressions. Spitbol is a different language than the awk
regular expressions. For example, the plus sign means very different
things in the two languages.

It is theoretically possible to program a parser and a backend which
invokes appropriate SPITBOL patterns corresponding to each awk
regular expression. However, that is not a trivial parser and
backend to design and debug. Therefore, it should not be said
that SPITBOL patterns are a superset of awk patterns.

Rather it should be said that SPITBOL is a different, but more
powerful, pattern recognition capability than awk regular expressions.

Please tell me I am wrong and that an awk regular expression
parser is available that implements regular expressions via
gnat.spitbol, or via any other means. The Ada community
sorely needs to point at the existence of this facility.

Mike Brenner

ATOM RSS1 RSS2