unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* correct way to do state machines in elisp?
@ 2002-08-24  4:35 Jonathan Walther
  2002-08-24 16:52 ` Alex Schroeder
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jonathan Walther @ 2002-08-24  4:35 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

I have written a bot in C; source here:
    http://reactor-core.org/linuxos/bot.c

As I was writing it, I couldn't help thinking, there must be a way to
write the same thing in LISP, with 1/3 the lines of code.  The largest
guzzler of lines of code I think is the state machine that parses every
RFC compliant IRC message into a suitable structure.

Can anyone give me hints about how the same thing could be done better
in elisp?  I'm reluctant to use regular expressions for this.

Jonathan

-- 
                     Geek House Productions, Ltd.

  Providing Unix & Internet Contracting and Consulting,
  QA Testing, Technical Documentation, Systems Design & Implementation,
  General Programming, E-commerce, Web & Mail Services since 1998

Phone:   604-435-1205
Email:   djw@reactor-core.org
Webpage: http://reactor-core.org
Address: 2459 E 41st Ave, Vancouver, BC  V5R2W2

[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-25  7:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-24  4:35 correct way to do state machines in elisp? Jonathan Walther
2002-08-24 16:52 ` Alex Schroeder
     [not found] ` <m3elcoukc7.fsf@ID-87814.user.dfncis.de>
2002-08-24 19:34   ` Jonathan Walther
2002-08-25  5:27 ` Richard Stallman
2002-08-25  7:32   ` linuxos and GNU (Was: Re: correct way to do state machines in elisp?) Jonathan Walther

Code repositories for project(s) associated with this public inbox

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

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).