[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sample functions for String Parsers in Lisp
From: |
Nordlöw |
Subject: |
Sample functions for String Parsers in Lisp |
Date: |
Tue, 13 Oct 2009 03:34:33 -0700 (PDT) |
User-agent: |
G2/1.0 |
Has anybody any good sample code in elisp that shows how to
conveniently do parsing of code contained in a string?
Reason: I am writing a parser that converts Emacs regexps (back) into
rx expressions. I need this for my file magic pattern matcher in order
to read as little data as possible from the file (locality) and do
several matchings in parallel.
I think the main loop should be string-iteration-driven using while()
and aref() and length() I presume.
Any suggestions?,
Nordlöw
- Sample functions for String Parsers in Lisp,
Nordlöw <=