unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: gnuist007@hotmail.com
To: help-gnu-emacs@gnu.org
Subject: Using lisp code in emacs inside a C program
Date: Wed, 24 Oct 2012 20:13:50 -0700 (PDT)	[thread overview]
Message-ID: <38c1b402-deb0-497a-adc3-640c525ab8c2@g4g2000yqk.googlegroups.com> (raw)

Dear Lispers,

I wrote a humble file parsing/structure-searching program in emacs
lisp. Essentially a collection of elisp functions called by a main
function. I may need the function to grow and to maintain it. I think
its easiest in the elisp in which I started the project.

I want to convert it to an executable or a form that runs without the
need for emacs. Hence, I want to be able to take whatever lisp
interpreter code from emacs and link to it or incorporate inside my C
executable.

The main functions from the emacs that my program uses are essentially
navigation and
regexp and non-greedy wildcards, ie "*?" and multiline searches.

I dont know if any of the standard regexp library in C or C++ supports
such extended regexp. Even sed does not support it and I avoid perl.
The only other option would be javascript but I want to stay loyal to
lisp if you are able to give me enough ideas on this matter. I would
be even willing to put together a small lisp interpreter in C with
your help and then bootstrap it using Lisp etc and then dump the
binary image after it has computed rest of the higher lisp definitions
in primitive lisp and link it to my code in elisp.

There is really no gui facility that it uses. I am sure many of you
have done this kind of thing as I keep on hearing but have to go
through all the steps myself.

Gnuist





             reply	other threads:[~2012-10-25  3:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-25  3:13 gnuist007 [this message]
2012-10-25 15:17 ` Using lisp code in emacs inside a C program Sohail Somani
     [not found] ` <mailman.11690.1351178239.855.help-gnu-emacs@gnu.org>
2012-10-25 15:46   ` gnuist007
2012-10-28 17:42     ` Pascal J. Bourguignon
2012-10-26  5:08   ` Rivka Miller
2012-10-26  5:59     ` William Gardella
2012-10-26 17:24       ` gnuist007
2012-10-26 21:03         ` Aurélien Aptel
2012-10-27 17:01         ` William Gardella

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=38c1b402-deb0-497a-adc3-640c525ab8c2@g4g2000yqk.googlegroups.com \
    --to=gnuist007@hotmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).