all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Regular Expression Parser in Emacs Lisp
Date: Fri, 25 Sep 2009 05:17:56 -0700 (PDT)	[thread overview]
Message-ID: <6f9bbe70-083c-43b0-864a-b2ac050605d1@f33g2000vbm.googlegroups.com> (raw)
In-Reply-To: slrnhbpcjv.3cg.joostkremers@j.kremers4.news.arnhem.chello.nl

On Sep 25, 2:08 pm, Joost Kremers <joostkrem...@yahoo.com> wrote:
> Nordlöw wrote:
> > Has any body any reflections, ideas or even code snippets that could
> > be used to implement a regular expression parser in Emacs-Lisp?
> > My highest prio is supporting emacs-style regexps.
>
> and why don't you use the one that's built into emacs?
>
> --
> Joost Kremers                                      joostkrem...@yahoo.com
> Selbst in die Unterwelt dringt durch Spalten Licht
> EN:SiS(9)

My motivation:
I am currently implementing (in Emacs-Lisp) a sort of database layer
for file types based on both file name and contents patterns (compare
with file and libmagic) that are preferrably specified using regular
expressions. But to make this reasonably fast I need a way to figure
out if a regexp has a maximum match length and if so what that length
is.
This because I want to perform memory-local scanning of file contents
and only want to load as much of the file that I actually need.

/Nordlöw


  reply	other threads:[~2009-09-25 12:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25 12:01 Regular Expression Parser in Emacs Lisp Nordlöw
2009-09-25 12:08 ` Joost Kremers
2009-09-25 12:17   ` Nordlöw [this message]
2009-09-25 12:27     ` Joost Kremers
2009-09-29  9:42 ` Ilya Zakharevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6f9bbe70-083c-43b0-864a-b2ac050605d1@f33g2000vbm.googlegroups.com \
    --to=per.nordlow@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.