Skip to content

Latest commit

 

History

History
80 lines (68 loc) · 4.66 KB

slang.md

File metadata and controls

80 lines (68 loc) · 4.66 KB

S-Lang SLregexp and SLsearch

Author: John E. Davis

The S-Lang Library is the standard library for the S-Lang programming language and is also usable from C. With it, the jed editor and slrn usenet reader were written. It includes a regular expression engine, SLregexp, and string-searching algorithms, SLsearch.

SLRegexp is used by slrn and slsh, among other parts of S-Lang. I have not determined whether slrn is a port of rn to S-Lang, a reimplementation, or completely unrelated. src/slregexp.c seems unrelated to in search.c in trn.

In src/slregexp.c, it states that it implements “ed style regular expressions”.

  • slang src/slregexp.c
  • slang src/slsearch.c
  • most src/search.c appears to use either slregexp or Unix V8 regexp.
  • S-Lang SLRegexp [src] [docs]

Users:

Mailing list

The relevant messages to the mailing lists from the archives are:

  • 2010-05-15: JED switched to Git “about a year or more ago” and stopped maintaining the SVN repo after the 2.2.2 release. The former forge, opensvn.csie.org, is also no longer hosting.
  • 2005-10-03: Added regexp support to folding.sl.
  • 2005-02-12: SLregexp does not support UTF-8 and SLREGEXP_UTF8 is a placeholder, as it will be replaced by PCRE in version 2.2.
  • 2005-01-14: Mentioned jedmodes.sourceforge.io (jedmodes.sf.net at the time), which is a collection of user-contributed S-Lang scripts.
  • 2005-03-09: Bob Bernstein indexed mailing list messages for searching on his personal site, including messages from 1999 to 2003 and (at the time) re-indexed daily.
  • 2005-01-14: Bob Bernstein added a Google site search form for jed-users on his personal site. No archive of the site in this state exists.
  • 2004-08-01: Patch for most src/search.c, which was not commented on or accepted.
  • 2004-07-08: S-Lang, including regexp syntax, is documented in slang.pdf.
  • 2004-07-08: Mentions the Jed Intrinsic Function Reference Manual.
  • 2004-07-03: Patch for jed search.c to fix replacements in replace_match during backreferences. It seems to have been fixed sometime before the current Git/SVN history.
  • 2002-12-01 (1), (2): Literal . is written as \\. and \. is still a metacharacter within a pattern string passed to jed dfa_define_highlight_rule.

TODO

  • Evaluate jed editor, including its syntax highlighting.
  • Evaluate whether most ever had its own regexp engine.
  • Evaluate man 7 regex on Unix (referenced in 2004-07-09)
  • Evaluate NEdit editor (not a part of S-Lang) (referenced in 2002-07-05)
  • Evaluate SciTE editor (not a part of S-Lang) (referenced in 2004-07-08)