From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Patch for lookaround assertion in regexp Date: Mon, 23 Jan 2012 17:14:49 +0100 Message-ID: References: <009001ccd9c0$9bde09f0$d39a1dd0$@cfraizer.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327335318 20783 80.91.229.12 (23 Jan 2012 16:15:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2012 16:15:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 23 17:15:10 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RpMY1-00086e-Jb for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2012 17:15:09 +0100 Original-Received: from localhost ([::1]:34939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpMY0-00038f-L1 for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2012 11:15:08 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpMXt-00034p-FP for emacs-devel@gnu.org; Mon, 23 Jan 2012 11:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpMXk-0008KW-Jv for emacs-devel@gnu.org; Mon, 23 Jan 2012 11:15:01 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:35824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpMXk-0008KK-Dz for emacs-devel@gnu.org; Mon, 23 Jan 2012 11:14:52 -0500 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 14CCD180013E; Mon, 23 Jan 2012 17:14:50 +0100 (CET) X-Auth-Info: ywM2Iyf1T2hCf6MavtTYqjjQIjgSCOkbP/uM5IHW/ys= Original-Received: from igel.home (ppp-88-217-98-175.dynamic.mnet-online.de [88.217.98.175]) by mail.mnet-online.de (Postfix) with ESMTPA id 5BD491C001F9; Mon, 23 Jan 2012 17:14:50 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id F0A73CA29A; Mon, 23 Jan 2012 17:14:49 +0100 (CET) X-Yow: - if it GLISTENS, gobble it!! In-Reply-To: (Tom's message of "Mon, 23 Jan 2012 15:19:58 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147854 Archived-At: Tom writes: > Andreas Schwab linux-m68k.org> writes: > >> >> Tom gmail.com> writes: >> >> > Why not use simply PCRE with a bridge layer which translates from emacs >> > regexp format to PCRE? AFAIK the emacs regexes are more or less a subset >> > of PCRE, so the translation shouldn't be very difficult. >> >> Does PCRE implement \c and \s? > > If it doesn't then it's a job for the translation layer. Char syntaxes > and categories could be converted into the standard [...] format. Enumerating the syntax/category members is not an option. There is no easy way to do that. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."